Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, just see the parameters of findContours. To be more explicit, use CV_RETR_EXTERNAL.

You can also see this for some info about the hierarchy, if you need it.

Yes, just see the parameters of findContours. To be more explicit, use :

CV_RETR_EXTERNALcv::findContours(imageIn, contoursOut, hierarchyOut, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE);
.

You can also see this for some info about the hierarchy, if you need it.