SaigeRotatedBox¶
#include <SaigeVisionAPI.h>
包含可旋转矩形信息的结构体。
Public Attributes¶
| Type | Name |
|---|---|
| double[ ] | center 矩形中心点的坐标,形式为 {x, y}。 |
| double[ ] | points 矩形的每个顶点坐标。坐标值为 {x1, y1, x2, y2, x3, y3, x4, y4}。 |
| double | width 矩形的宽度。 |
| double | height 矩形的高度。 |
| double | angle 矩形顺时针旋转的角度,单位为“度”。 |
Public Attributes Documentation¶
center¶
矩形中心点的坐标,形式为 {x, y}。
double[] center;
points¶
矩形的每个顶点坐标。坐标值为 {x1, y1, x2, y2, x3, y3, x4, y4}。
double[] points;
从1号点到4号点的顺序是基于旋转前的矩形。
1号点是旋转前矩形的左下角点,顺时针顺序依次为2号、3号和4号点。
width¶
矩形的宽度。
double width;
height¶
矩形的高度。
double height;
angle¶
矩形顺时针旋转的角度,单位为“度”。
double angle;