I've been trying to identify a method to calculate defects (line roughness) and convexHull is the only real method I've found. This method does exactly what I want with the exception that it doesn't follow the curvature of the lines at all. Below is the image being analyzed with one convexHull plotted on it. I absolutely cannot find a concaveHull function which would fix the problem.
Is there a concaveHull function somewhere I can't find? I know there would be parameters such as sensitivity that would need optimized, but I don't know where to start. Here are the functions I'm referring to.
hull = cv2.convexHull(cnt,returnPoints=True)
hullDefects = cv2.convexHull(cnt,returnPoints=False)
spiralDefects = cv2.convexityDefects(cnt, hullDefects)