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));
...
}
2 | No.2 Revision |
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));
...
}