findContours contour points order and connectivity

asked 2016-01-28 12:04:27 -0500

I discovered that the order of the points in contours found by findContours are not in any apparent connected order. However, when I draw them with drawContours, I see the contours drawn with connected points.

Do the contour points from findContours have any implied connectivity e.g. the order of the points?

Is drawContours using its own algorithm for deciding how to connect the unconnected contour points passed to it?

Is there a way to order the contour points in the same way as drawContours draws them?

Is there more to know about contours that isn't in the findContours documentation?

Thanks!

edit retag flag offensive close merge delete

Comments

how did you discover that the order of the points in contours found by findContours are not in any apparent connected order i think that they are in apparent connected order!

sturkmen gravatar imagesturkmen ( 2016-01-28 12:22:46 -0500 )edit