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

Functions

eErrorType SR_GetSegTestMinScoreThresholdWithoutBG (SegTestHandle handle, int *scoreThreshold)
 Get Segmentation's score threshold for each class. More...
 
eErrorType SR_SetSegTestMinScoreThresholdWithoutBG (SegTestHandle handle, int numOfClasses, int *scoreThreshold, bool writeOnModelFile=true)
 Set Segmentation's score threshold for each class. More...
 

Detailed Description

Segmentation's Score threshold

Before determine the class of each pixel, pixel scores per each channel(class) which do not exceed the score-threshold(0-255) are set to 0. The length of Segmentation's score threshold is equal to the number of classes. Users can set different Segmentation's score threshold for each class. The default value is the last value set in the Saige Vision software, and is set to 100 if it has not been changed.

Function Documentation

◆ SR_GetSegTestMinScoreThresholdWithoutBG()

eErrorType SR_GetSegTestMinScoreThresholdWithoutBG ( SegTestHandle  handle,
int *  scoreThreshold 
)

Get Segmentation's score threshold for each class.

Parameters
handlesegmentation file handler
[out]scoreThresholdmemory address receiving score thresholds. The length of memory must be equal to number of classes
See also
SR_SetSegTestMinScoreThresholdWithoutBG
Examples
ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, and ExampleSuperResolution+SegRuntime.cpp.

◆ SR_SetSegTestMinScoreThresholdWithoutBG()

eErrorType SR_SetSegTestMinScoreThresholdWithoutBG ( SegTestHandle  handle,
int  numOfClasses,
int *  scoreThreshold,
bool  writeOnModelFile = true 
)

Set Segmentation's score threshold for each class.

Parameters
handlesegmentation file handler
numOfClassesnumber of classes
scoreThresholdmemory address holding score thresholds. The length of memory must be equal to numOfClasses
writeOnModelFileoverwrite on model file or not
See also
SR_GetSegTestMinScoreThresholdWithoutBG
Examples
ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, and ExampleSuperResolution+SegRuntime.cpp.