Struct opencv::core::RotatedRect [−][src]
pub struct RotatedRect { /* fields omitted */ }
Expand description
The class represents rotated (i.e. not up-right) rectangles on a plane.
Each rectangle is specified by the center point (mass center), length of each side (represented by #Size2f structure) and the rotation angle in degrees.
The sample below demonstrates how to use RotatedRect:
RotatedRect_demo
See also
CamShift, fitEllipse, minAreaRect, CvBox2D
Implementations
default constructor
full constructor
Parameters
- center: The rectangle mass center.
- size: Width and height of the rectangle.
- angle: The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
Any 3 end points of the RotatedRect. They must be given in order (either clockwise or anticlockwise).
Trait Implementations
returns the rectangle mass center
returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
returns 4 vertices of the rectangle Read more
returns the minimal up-right integer rectangle containing the rotated rectangle
returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images