#include <core.hpp>
Public Types | |
typedef _Tp | value_type |
Public Member Functions | |
Rect_ () | |
various constructors More... | |
Rect_ (_Tp _x, _Tp _y, _Tp _width, _Tp _height) | |
Rect_ (const Rect_ &r) | |
Rect_ (const CvRect &r) | |
Rect_ (const Point_< _Tp > &org, const Size_< _Tp > &sz) | |
Rect_ (const Point_< _Tp > &pt1, const Point_< _Tp > &pt2) | |
Rect_ & | operator= (const Rect_ &r) |
Point_< _Tp > | tl () const |
the top-left corner More... | |
Point_< _Tp > | br () const |
the bottom-right corner More... | |
Size_< _Tp > | size () const |
size (width, height) of the rectangle More... | |
_Tp | area () const |
area (width*height) of the rectangle More... | |
template<typename _Tp2 > | |
operator Rect_< _Tp2 > () const | |
conversion to another data type More... | |
operator CvRect () const | |
conversion to the old-style CvRect More... | |
bool | contains (const Point_< _Tp > &pt) const |
checks whether the rectangle contains the point More... | |
Public Attributes | |
_Tp | x |
_Tp | y |
_Tp | width |
_Tp | height |
The 2D up-right rectangle class
The class represents a 2D rectangle with coordinates of the specified data type. Normally, cv::Rect ~ cv::Rect_<int> is used.
typedef _Tp cv::Rect_< _Tp >::value_type |
|
inline |
|
inline |
|
inline |
area (width*height) of the rectangle
checks whether the rectangle contains the point
conversion to the old-style CvRect
|
inline |
conversion to another data type
size (width, height) of the rectangle
_Tp cv::Rect_< _Tp >::height |
_Tp cv::Rect_< _Tp >::width |