1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #7754 from LAZI-2240:toupstream2.4

Introducing boundingRect2f() (#7754)

* Introducing boundingRect2f to return exact bounding float rectangle for RotatedRect

* Introducing boundingRect2f to return exact bounding float rectangle for RotatedRect

* Introducing boundingRect2f() - update

* Introducing boundingRect2f to return exact bounding float rectangle for RotatedRect

* Introducing boundingRect2f() - update - tested
This commit is contained in:
bedbad
2016-12-12 14:29:53 -05:00
committed by Alexander Alekhin
parent 7be4a0ee2f
commit ffcf866e2f
2 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -910,8 +910,10 @@ public:
//! returns 4 vertices of the rectangle
void points(Point2f pts[]) const;
//! returns the minimal up-right rectangle containing the rotated rectangle
//! returns the minimal up-right integer rectangle containing the rotated rectangle
Rect boundingRect() const;
//! returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images
Rect_<float> boundingRect2f() const;
//! conversion to the old-style CvBox2D structure
operator CvBox2D() const;