SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
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
 
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...
 
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

◆ 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: