zoukankan      html  css  js  c++  java
  • OpenCV笔记(RotatedRect)

    // 代表一个旋转的矩形,包含矩形的中心,矩形的大小,旋转的角度。
    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.
    };




  • 相关阅读:
    ES6解构赋值
    ES6兼容
    ES6关键字
    ES6模板字符串
    Bootstrap面试题
    Javascript中类型转换的情况以及结果
    事件
    ES6 解构赋值
    ES6 基础(let const)
    数组与字符串常用方法
  • 原文地址:https://www.cnblogs.com/fireae/p/3684922.html
Copyright © 2011-2022 走看看