|
opencv
2.2.0
|
#include <core.hpp>
Public Member Functions | |
| Rect | boundingRect () const |
| returns the minimal up-right rectangle containing the rotated rectangle | |
| operator CvBox2D () const | |
| conversion to the old-style CvBox2D structure | |
| void | points (Point2f pts[]) const |
| returns 4 vertices of the rectangle | |
| RotatedRect () | |
| various constructors | |
| RotatedRect (const Point2f &_center, const Size2f &_size, float _angle) | |
| RotatedRect (const CvBox2D &box) | |
Public Attributes | |
| float | angle |
| Point2f | center |
| Size2f | size |
The rotated 2D rectangle.
The class represents rotated (i.e. not up-right) rectangles on a plane. Each rectangle is described by the center point (mass center), length of each side (represented by cv::Size2f structure) and the rotation angle in degrees.
|
inline |
various constructors
|
inline |
| Rect cv::RotatedRect::boundingRect | ( | ) | const |
returns the minimal up-right rectangle containing the rotated rectangle
| float cv::RotatedRect::angle |
| Point2f cv::RotatedRect::center |
| Size2f cv::RotatedRect::size |
1.8.2