Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

findContours has a parameter 'mode' that can be set to CV_RETR_EXTERNAL to retrieve only the outermost contour.

http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#findcontours