for ( vector<RotatedRect>::iterator itr = minRect.begin(); itr!=minRect.end(); itr++)
{
Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
Point2f rpoints[4];
(*itr).points( rpoints );
Point rect_points[1][4];
for (int np = 0;np<4;np++){
rect_points[0][np] = Point( rpoints[np].x,rpoints[np].y );
}
const Point* ppt[1] = { rect_points[0] };
in
{
Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
Point2f rpoints[4];
(*itr).points( rpoints );
Point rect_points[1][4];
for (int np = 0;np<4;np++){
rect_points[0][np] = Point( rpoints[np].x,rpoints[np].y );
}
const Point* ppt[1] = { rect_points[0] };
in