OpenCV  2.4.13.3
Open Source Computer Vision
cv::RotatedRect Class Reference

#include <core.hpp>

Public Member Functions

 RotatedRect ()
 various constructors More...
 
 RotatedRect (const Point2f &center, const Size2f &size, float angle)
 
 RotatedRect (const CvBox2D &box)
 
void points (Point2f pts[]) const
 returns 4 vertices of the rectangle More...
 
Rect boundingRect () const
 returns the minimal up-right integer rectangle containing the rotated rectangle More...
 
Rect_< float > boundingRect2f () const
 returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images More...
 
 operator CvBox2D () const
 conversion to the old-style CvBox2D structure More...
 

Public Attributes

Point2f center
 
Size2f size
 
float angle
 

Detailed Description

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.

Constructor & Destructor Documentation

§ RotatedRect() [1/3]

cv::RotatedRect::RotatedRect ( )
inline

various constructors

§ RotatedRect() [2/3]

cv::RotatedRect::RotatedRect ( const Point2f center,
const Size2f size,
float  angle 
)
inline

§ RotatedRect() [3/3]

cv::RotatedRect::RotatedRect ( const CvBox2D box)
inline

Member Function Documentation

§ boundingRect()

Rect cv::RotatedRect::boundingRect ( ) const

returns the minimal up-right integer rectangle containing the rotated rectangle

§ boundingRect2f()

Rect_<float> cv::RotatedRect::boundingRect2f ( ) const

returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images

§ operator CvBox2D()

cv::RotatedRect::operator CvBox2D ( ) const
inline

conversion to the old-style CvBox2D structure

§ points()

void cv::RotatedRect::points ( Point2f  pts[]) const

returns 4 vertices of the rectangle

Member Data Documentation

§ angle

float cv::RotatedRect::angle

§ center

Point2f cv::RotatedRect::center

§ size

Size2f cv::RotatedRect::size

The documentation for this class was generated from the following files: