跳转至

SaigeSegmentedObject

  • #include <SaigeVisionAPI.h>

包含通过分割(SEG)或异常检测(IAD)检测到的区域信息的结构体。

Public Attributes

Type Name
SaigeRotatedBox boundingBox
包含轮廓的最小面积的直立矩形,旋转角度始终为0度。
SaigeRotatedBox boundingRotBox
包含轮廓的最小面积的旋转矩形,可能具有非零的旋转角度。
SaigeEllipse fittedEllipse
最符合轮廓的椭圆(最小二乘意义下)。
unsigned int area
检测区域的面积。
unsigned int classIndex
检测区域所属类别的索引。
double score
代表检测区域的得分,范围为0到255。
int numOfContours
表示检测区域的轮廓数量。
int * numOfPointsOnContour
每个轮廓上点的数量。
int * pointsOnContour
按轮廓顺序排列的每个轮廓上的点的数组,结构为 {x1, y1, x2, y2, … }。

Public Attributes Documentation

boundingBox

包含轮廓的最小面积的直立矩形,旋转角度始终为0度。

SaigeRotatedBox boundingBox;

boundingRotBox

包含轮廓的最小面积的旋转矩形,可能具有非零的旋转角度。

SaigeRotatedBox boundingRotBox;

fittedEllipse

最符合轮廓的椭圆(最小二乘意义下)。

SaigeEllipse fittedEllipse;

area

检测区域的面积。

unsigned int area;

classIndex

检测区域所属类别的索引。

unsigned int classIndex;

检测到的分割对象不能属于 OK 类(索引 0),因此 classIndex 始终为 1 或更高。

score

代表检测区域的得分,范围为0到255。

double score;

numOfContours

表示检测区域的轮廓数量。

int numOfContours;

numOfPointsOnContour

每个轮廓上点的数量。

int * numOfPointsOnContour;

pointsOnContour

按轮廓顺序排列的每个轮廓上的点的数组,结构为 {x1, y1, x2, y2, … }。

int * pointsOnContour;