#include <core.hpp>
Public Types | |
| typedef _Tp | value_type |
Public Member Functions | |
| _Tp | area () const |
| area (width*height) of the rectangle | |
| Point_< _Tp > | br () const |
| the bottom-right corner | |
| bool | contains (const Point_< _Tp > &pt) const |
| checks whether the rectangle contains the point | |
| operator CvRect () const | |
| conversion to the old-style CvRect | |
| template<typename _Tp2 > | |
| operator Rect_< _Tp2 > () const | |
| conversion to another data type | |
| Rect_ & | operator= (const Rect_ &r) |
| Rect_ (_Tp _x, _Tp _y, _Tp _width, _Tp _height) | |
| Rect_ (const CvRect &r) | |
| Rect_ () | |
| various constructors | |
| Rect_ (const Point_< _Tp > &pt1, const Point_< _Tp > &pt2) | |
| Rect_ (const Rect_ &r) | |
| Rect_ (const Point_< _Tp > &org, const Size_< _Tp > &sz) | |
| Size_< _Tp > | size () const |
| size (width, height) of the rectangle | |
| Point_< _Tp > | tl () const |
| the top-left corner | |
Public Attributes | |
| _Tp | height |
| _Tp | width |
| _Tp | x |
| _Tp | y |
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 |
| cv::Rect_< _Tp >::Rect_ | ( | const Point_< _Tp > & | org, |
| const Size_< _Tp > & | sz | ||
| ) | [inline] |
| cv::Rect_< _Tp >::Rect_ | ( | const Point_< _Tp > & | pt1, |
| const Point_< _Tp > & | pt2 | ||
| ) | [inline] |
| _Tp cv::Rect_< _Tp >::area | ( | ) | const [inline] |
area (width*height) of the rectangle
the bottom-right corner
checks whether the rectangle contains the point
conversion to the old-style CvRect
| cv::Rect_< _Tp >::operator Rect_< _Tp2 > | ( | ) | const [inline] |
conversion to another data type
| Rect_< _Tp > & cv::Rect_< _Tp >::operator= | ( | const Rect_< _Tp > & | r ) | [inline] |
size (width, height) of the rectangle
1.7.2