First time here? Check out the FAQ!
answered 2015-09-22 10:00:41 -0600
There is no convexity to be computed if the contour has not at least 3 points (so it may be a polygon)... I consider that the function is ok, you should filter those contours that may not be polygons