SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
Segmentation's area threshold

Functions

eErrorType SR_GetSegTestMinPixelSizeThresholdWithoutBG (SegTestHandle handle, int *areaThreshold)
 Get Segmentation's area threshold for each class. More...
 
eErrorType SR_SetSegTestMinPixelSizeThresholdWithoutBG (SegTestHandle handle, int numOfClasses, int *areaThreshold, bool writeOnModelFile=true)
 Set Segmentation's area threshold for each class. More...
 
eErrorType SR_GetSegTestModeOfFilteringByPixelSize (SegTestHandle handle, eModeOfPixelSizeFilter *modeOfFiltering)
 Get the mode of filtering by Segmentation's area threshold. More...
 
eErrorType SR_SetSegTestModeOfFilteringByPixelSize (SegTestHandle handle, eModeOfPixelSizeFilter modeOfFiltering, bool writeOnModelFile=true)
 Set the mode of filtering by Segmentation's area threshold. More...
 

Detailed Description

Segmentation's Area threshold

Area threshold 값보다 작은 면적을 가지는 결함 (SR_SegmentedObject) 은 필터링되어 SR_GetSegTestSegmentedObjects 함수를 통해 받아오지 않습니다.

Function Documentation

◆ SR_GetSegTestMinPixelSizeThresholdWithoutBG()

eErrorType SR_GetSegTestMinPixelSizeThresholdWithoutBG ( SegTestHandle  handle,
int *  areaThreshold 
)

Get Segmentation's area threshold for each class.

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

◆ SR_GetSegTestModeOfFilteringByPixelSize()

eErrorType SR_GetSegTestModeOfFilteringByPixelSize ( SegTestHandle  handle,
eModeOfPixelSizeFilter *  modeOfFiltering 
)

Get the mode of filtering by Segmentation's area threshold.

Parameters
handlesegmentation file handler
[out]modeOfFilteringmemory address receiving mode of filtering.
See also
SR_SetSegTestModeOfFilteringByPixelSize

◆ SR_SetSegTestMinPixelSizeThresholdWithoutBG()

eErrorType SR_SetSegTestMinPixelSizeThresholdWithoutBG ( SegTestHandle  handle,
int  numOfClasses,
int *  areaThreshold,
bool  writeOnModelFile = true 
)

Set Segmentation's area threshold for each class.

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

◆ SR_SetSegTestModeOfFilteringByPixelSize()

eErrorType SR_SetSegTestModeOfFilteringByPixelSize ( SegTestHandle  handle,
eModeOfPixelSizeFilter  modeOfFiltering,
bool  writeOnModelFile = true 
)

Set the mode of filtering by Segmentation's area threshold.

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