added test, doc
This commit is contained in:
@@ -316,6 +316,7 @@ RotatedRect
|
||||
RotatedRect();
|
||||
RotatedRect(const Point2f& center, const Size2f& size, float angle);
|
||||
RotatedRect(const CvBox2D& box);
|
||||
RotatedRect(const Point2f& point1, const Point2f& point2, const Point2f& point3);
|
||||
|
||||
//! returns 4 vertices of the rectangle
|
||||
void points(Point2f pts[]) const;
|
||||
@@ -338,7 +339,11 @@ The class represents rotated (i.e. not up-right) rectangles on a plane. Each rec
|
||||
:param size: Width and height of the rectangle.
|
||||
:param angle: The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
|
||||
:param box: The rotated rectangle parameters as the obsolete CvBox2D structure.
|
||||
.. ocv:function:: RotatedRect::RotatedRect(const Point2f& point1, const Point2f& point2, const Point2f& point3)
|
||||
|
||||
:param point1:
|
||||
:param point2:
|
||||
:param point3: Any 3 end points of the RotatedRect. They must be given in order (either clockwise or anticlockwise).
|
||||
.. ocv:function:: void RotatedRect::points( Point2f pts[] ) const
|
||||
.. ocv:function:: Rect RotatedRect::boundingRect() const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user