mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #7872 from alalek:merge-2.4
This commit is contained in:
committed by
GitHub
parent
a206e12174
commit
0e4dde1781
@@ -5566,6 +5566,16 @@ Rect RotatedRect::boundingRect() const
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Rect_<float> RotatedRect::boundingRect2f() const
|
||||
{
|
||||
Point2f pt[4];
|
||||
points(pt);
|
||||
Rect_<float> r(Point_<float>(min(min(min(pt[0].x, pt[1].x), pt[2].x), pt[3].x), min(min(min(pt[0].y, pt[1].y), pt[2].y), pt[3].y)),
|
||||
Point_<float>(max(max(max(pt[0].x, pt[1].x), pt[2].x), pt[3].x), max(max(max(pt[0].y, pt[1].y), pt[2].y), pt[3].y)));
|
||||
return r;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// glue
|
||||
|
||||
Reference in New Issue
Block a user