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 | |
Struct describing features of a segmentation object.
| 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.
| int* SR_SegmentedObject::hierarchies |
Array of hierarchies for all contours of segmented object.
lenght of array = 4 x nContours
| int SR_SegmentedObject::nContours |
Infomation on contours of segmented object
| 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.