SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Segmentation's average color

Functions

eErrorType SR_SetSegTestIsToCalcAverageColor (SegTestHandle handle, bool isToCalcAverageColors, bool writeOnModelFile=true)
 Set the boolean indicating whether calculate SR_SegmentedObject::averageColor or not. More...
 
eErrorType SR_GetSegTestIsToCalcAverageColor (SegTestHandle handle, bool *isToCalcAverageColors)
 Get the boolean indicating whether calculate SR_SegmentedObject::averageColor or not. More...
 

Detailed Description

SR_SegmentedObject::averageColor is the average color of pixels in SR_SegmentedObject. For optimal performance, we recommend 'not' to calculate the values.

Function Documentation

◆ SR_GetSegTestIsToCalcAverageColor()

eErrorType SR_GetSegTestIsToCalcAverageColor ( SegTestHandle  handle,
bool *  isToCalcAverageColors 
)

Get the boolean indicating whether calculate SR_SegmentedObject::averageColor or not.

Parameters
handlesegmentation file handler
[out]isToCalcAverageColors

◆ SR_SetSegTestIsToCalcAverageColor()

eErrorType SR_SetSegTestIsToCalcAverageColor ( SegTestHandle  handle,
bool  isToCalcAverageColors,
bool  writeOnModelFile = true 
)

Set the boolean indicating whether calculate SR_SegmentedObject::averageColor or not.

Parameters
handlesegmentation file handler
isToCalcAverageColors
writeOnModelFileoverwrite on model file or not
Examples
ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, and ExampleSuperResolution+SegRuntime.cpp.