|
| | Rect () |
| | 矩形类的默认构造函数
|
| |
| | Rect (int x, int y, int width, int height) |
| | 矩形类的带参构造函数
|
| |
| | Rect (Point2i pt1, Point2i pt2) |
| | 矩形类的带参构造函数
|
| |
| | Rect (const Rect &rect) |
| | 矩形类的拷贝构造函数
|
| |
| | Rect (const cv::Vec4i &rect) |
| | 矩形类的带参构造函数
|
| |
| | Rect (const cv::Rect &rect) |
| | 矩形类的带参构造函数
|
| |
| | Rect (const std::vector< int > &list) |
| | 矩形类的移动构造函数
|
| |
| | ~Rect () |
| | 矩形类默认析构函数
|
| |
| | operator cv::Rect () const |
| | 将矩形类转换为 OpenCV 的 cv::Rect 类型
|
| |
| | operator cv::Vec4i () const |
| | 将矩形类转换为 OpenCV 的 cv::Vec4i 类型
|
| |
| | operator std::vector< int > () const |
| | 将矩形类转换为 std::vector<int> 类型
|
| |
| bool | IsPoint () const |
| | 判断矩形是否为一个点
|
| |
| template<typename U > |
| bool | Include (const Point< U > &pt, const Margin &margin=0, bool is_include_boundaries=true) const |
| | 判断所给点是否被矩形包含
|
| |
| bool | Include (const Line &line, const Margin &margin=0, bool is_include_boundaries=true) const |
| | 判断给定线段是否完全位于矩形内部
|
| |
| bool | Include (const Rect &rect, const Margin &margin=0, bool is_include_boundaries=true) const |
| | 判断所给矩形是否被矩形包含
|
| |
| bool | IsIntersect (const Rect &rect, IntersectType type=INTERSECT_XY, const Margin &margin=0, bool is_include_boundaries=false) const |
| | 判断所给矩形是否与矩形相交(不算边界)
|
| |
| bool | IsIntersect (const Line &line, IntersectType type=INTERSECT_XY, const Margin &margin=0, bool is_include_boundaries=true) const |
| | 判断所给线是否与矩形相交(算边界)
|
| |
| Rect | Intersect (const Rect &rect) const |
| | 计算两相交矩形所返回的新矩形(包含边界)
|
| |
| Line | Intersect (const Line &line) const |
| | 计算矩形与直线相交部分(包含边界)
|
| |
| Rect | Union (const Rect &rect) const |
| | 计算两个矩形的并集
|
| |
| Point2i | DiagonalPoint (bool is_left_top=false) const |
| | 获取矩形的对角点坐标
|
| |
| Point2d | CenterPoint () const |
| | 获取矩形的中心坐标
|
| |
| Rect & | Translate (int dx, int dy) |
| | 矩形平移
|
| |
| Rect & | Scale (double factor) |
| | 矩形缩放
|
| |
| Rect & | Scale (const Margin &margin) |
| | 矩形缩放
|
| |
| Rect & | TidyRect () |
| | 整理矩形
|
| |