SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Segmentation's object score

Functions

eErrorType SR_SetSegTestIsToCalcObjectScores (SegTestHandle handle, bool isToCalcObjectScores, bool writeOnModelFile=true)
 Set the boolean indicating whether calculate SR_SegmentedObject::scores or not. More...
 
eErrorType SR_GetSegTestIsToCalcObjectScores (SegTestHandle handle, bool *isToCalcObjectScores)
 Get the boolean indicating whether calculate SR_SegmentedObject::scores or not. More...
 

Detailed Description

SR_SegmentedObject::scores is the mean, min, max scores of pixels in the object. For optimal performance, we recommend 'not' to calculate the values.

Function Documentation

◆ SR_GetSegTestIsToCalcObjectScores()

eErrorType SR_GetSegTestIsToCalcObjectScores ( SegTestHandle  handle,
bool *  isToCalcObjectScores 
)

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

Parameters
handlesegmentation file handler
[out]isToCalcObjectScores

◆ SR_SetSegTestIsToCalcObjectScores()

eErrorType SR_SetSegTestIsToCalcObjectScores ( SegTestHandle  handle,
bool  isToCalcObjectScores,
bool  writeOnModelFile = true 
)

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

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