SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
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

각 픽셀의 최종 클래스를 판별하기 전 채널별로(=클래스별로) Segmentation's score threshold 를 넘지 못하는 픽셀값은 0으로 처리합니다. Segmentation's score threshold 의 길이는 클래스 개수와 같아야 하며 클래스 별로 서로 다른 값을 지정해줄 수 있습니다. 기본 값은 Saige Vision 프로그램에서 설정된 값으로 만약 한번도 설정한 적이 없다면 100입니다.

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.