Ask Your Question
2

Contour ordering

asked 2013-07-03 10:47:24 -0600

mgb gravatar image

updated 2013-07-03 10:48:22 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-07-04 09:23:22 -0600

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!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-03 10:47:24 -0600

Seen: 497 times

Last updated: Jul 04 '13