首页 > 其他 > 详细

OpenCV笔记(RotatedRect)

时间:2014-04-25 05:02:42      阅读:1868      评论:0      收藏:0      [点我收藏+]
// 代表一个旋转的矩形,包含矩形的中心,矩形的大小,旋转的角度。
class CV_EXPORTS RotatedRect
{
public:
    //! various constructors
    RotatedRect();
    RotatedRect(const Point2f& center, const Size2f& size, float angle);
    RotatedRect(const CvBox2D& box);
    //! returns 4 vertices of the rectangle
    void points(Point2f pts[]) const;
    //! returns the minimal up-right rectangle containing the rotated rectangle
    Rect boundingRect() const;
    //! conversion to the old-style CvBox2D structure
    operator CvBox2D() const;
    Point2f center; //< the rectangle mass center
    Size2f size;    //< width and height of the rectangle
    float angle;    //< the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
};




OpenCV笔记(RotatedRect),布布扣,bubuko.com

OpenCV笔记(RotatedRect)

原文:http://www.cnblogs.com/fireae/p/3684922.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!