SaigeSegmentedObject¶
#include <SaigeVisionAPI.h>
Structure containing information about a detected area from Segmentation (SEG) or Anomaly Detection (IAD).
Public Attributes¶
| Type | Name |
|---|---|
| SaigeRotatedBox | boundingBox An upright rectangle of the minimum area enclosing the contour, always with a rotation angle of 0 degrees. |
| SaigeRotatedBox | boundingRotBox A rotated rectangle of the minimum area enclosing the contour, which may have a non-zero rotation angle. |
| SaigeEllipse | fittedEllipse an ellipse that best fits the contour in a least-squares sense. |
| unsigned int | area The area of the detected region. |
| unsigned int | classIndex Index of the class to which the detected region belongs. |
| double | score Score representing the detected region, ranging from 0 to 255. |
| int | numOfContours Number of contours representing the detected region. |
| int * | numOfPointsOnContour Number of points on each contour. |
| int * | pointsOnContour Array of points on each contour, ordered by contour. Structured as {x1, y1, x2, y2, … }. |
Public Attributes Documentation¶
boundingBox¶
An upright rectangle of the minimum area enclosing the contour, always with a rotation angle of 0 degrees.
SaigeRotatedBox boundingBox;
boundingRotBox¶
A rotated rectangle of the minimum area enclosing the contour, which may have a non-zero rotation angle.
SaigeRotatedBox boundingRotBox;
fittedEllipse¶
an ellipse that best fits the contour in a least-squares sense.
SaigeEllipse fittedEllipse;
area¶
The area of the detected region.
unsigned int area;
classIndex¶
Index of the class to which the detected region belongs.
unsigned int classIndex;
Detected segmented objects cannot belong to the OK class (index 0), so classIndex is always 1 or higher.
score¶
Score representing the detected region, ranging from 0 to 255.
double score;
numOfContours¶
Number of contours representing the detected region.
int numOfContours;
numOfPointsOnContour¶
Number of points on each contour.
int * numOfPointsOnContour;
pointsOnContour¶
Array of points on each contour, ordered by contour. Structured as {x1, y1, x2, y2, … }.
int * pointsOnContour;