SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
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

The segmented objects (SR_SegmentedObject), whose area is below the corresponding Area threshold, are filtered out, so not gathered by 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.