Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If I understand correctly, you do not want to draw the nested contours. In this case the line where you draw the contours should be changed to,

drawContours(box,regions,i,Scalar(0,255,255),1,8, vector<Vec4i>(), 0, Point());//this was used to draw irregular  outlines of MSER regions

Refer to drawContours for more information.

click to hide/show revision 2
No.2 Revision

If I understand correctly, you do not want to draw the nested contours. In this case the line where you draw the contours should be changed to,

drawContours(box,regions,i,Scalar(0,255,255),1,8, vector<Vec4i>(), 0, Point());//this was used to draw irregular  outlines of MSER regions

Refer to drawContours for more information.