Ask Your Question
2

Contour ordering

asked Jul 3 '13

mgb gravatar image

updated Jul 3 '13

Is there any guarantee about the ordering of contours returned by FindContours()?

The result are 'almost' ordered by image row of the first point - except for a few percent which aren't !
Is this a bug, is the ordering a weak side effect of the algorithm or are they ordered by some other criteria?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jul 4 '13

Guanta gravatar image

There is no order but how it is processed it is as you said nearly ordered. I suggest not to rely on it at all!

Preview: (hide)

Question Tools

Stats

Asked: Jul 3 '13

Seen: 520 times

Last updated: Jul 04 '13