struct CvBox2D

Overview

#include <types_c.h>

struct CvBox2D
{
    // fields

    float angle;
    CvPoint2D32f center;
    CvSize2D32f size;

    // construction

    CvBox2D(
        CvPoint2D32f c = CvPoint2D32f(),
        CvSize2D32f s = CvSize2D32f(),
        float a = 0
        );

    CvBox2D(const cv::RotatedRect& rr);

    // methods

    operator cv::RotatedRect() const;
};

Detailed Documentation

See also:

RotatedRect

Fields

float angle

Angle between the horizontal axis and the first side (i.e. length) in degrees

CvPoint2D32f center

Center of the box.

CvSize2D32f size

Box width and length.