Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi! As I see, you can use this code for your problem:

vector<vector<Point> >::const_iterator contour_it = contours.begin();
for( ; contour_it != msers.end(); ++contour_it )
{
   RotatedRect box = fitEllipse(Mat(*contour_it));
   ...
} 

Hi! As I see, you can use this code for your problem:

vector<vector<Point> >::const_iterator contour_it = contours.begin();
for( ; contour_it != msers.end(); contours.end(); ++contour_it )
{
   RotatedRect box = fitEllipse(Mat(*contour_it));
   ...
}