SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
SR_SegmentedObject Struct Reference

Struct describing features of a segmentation object. More...

#include <CommonHeaderDLL.h>

Public Attributes

unsigned int xCenter
 x coordinate of the center of the object
 
unsigned int yCenter
 y coordinate of the center of the object
 
unsigned int area
 area of the object
 
unsigned int width
 width of the object
 
unsigned int height
 height of the object
 
float ellipseXCenter
 x coordinate of the center of the fitted ellipse to the object
 
float ellipseYCenter
 y coordinate of the center of the fitted ellipse to the object
 
float ellipseWidth
 width of the fitted ellipse to the object
More...
 
float ellipseHeight
 height of the fitted ellipse to the object
More...
 
float ellipseAngle
 angle of the fitted ellipse to the object
 
unsigned int classIdx
 class index of the object (except for background)
 
double scores [3]
 Mean, minimum, maximum score values (0 ~ 255) of the object. More...
 
double averageColor [3]
 Average color (BGR order, 0 ~ 255) of the object. More...
 
int nContours
 
int * hierarchies
 Array of hierarchies for all contours of segmented object. More...
 
float filteringObjectRatio
 ratio of overlapping area with the set region when the filtering object function is applied (in [0, 1])
 
Cropped image

Information on a image which is cropped around the object. The image is not cropped in default behavior. To get the image, change the mode of post-processing by calling SR_SetSegTestIsToStoreCroppedImage.

int croppedImageWidth
 width of a cropped image
 
int croppedImageHeight
 height of a cropped image
 
int croppedImageChannels
 # of channels of a cropped image
 
void * croppedImage
 data of a cropped image
 

Detailed Description

Struct describing features of a segmentation object.

Member Data Documentation

◆ averageColor

double SR_SegmentedObject::averageColor[3]

Average color (BGR order, 0 ~ 255) of the object.

These values are not calculated in default behavior. To get this value, change the mode of post-processing by calling SR_SetSegTestIsToCalcAverageColor.
For grayscale, check the first element of the array.

See also
Segmentation's average color

◆ ellipseHeight

float SR_SegmentedObject::ellipseHeight

height of the fitted ellipse to the object

◆ ellipseWidth

float SR_SegmentedObject::ellipseWidth

width of the fitted ellipse to the object

◆ hierarchies

int* SR_SegmentedObject::hierarchies

Array of hierarchies for all contours of segmented object.

lenght of array = 4 x nContours

◆ nContours

int SR_SegmentedObject::nContours

Infomation on contours of segmented object

◆ scores

double SR_SegmentedObject::scores[3]

Mean, minimum, maximum score values (0 ~ 255) of the object.

These values are not calculated in default behavior. To get these values, change the mode of post-processing by calling SR_SetSegTestIsToCalcObjectScores.

  • scores[0]: average score of pixels in the object.
  • scores[1]: minimum score of pixels in the object.
  • scores[2]: maximum score of pixels in the object.
    See also
    Segmentation's object score

The documentation for this struct was generated from the following file: