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

Functions

eErrorType SR_SetSegTestIsToStoreCroppedImage (SegTestHandle handle, bool isToStoreCroppedImage, int defaultCropSize, eModeOfCropLargeObjects modeOfCropLargeObjects=SR_CROP_BY_OBJECTSIZE_N_RESIZE_TO_CROPSIZE, float margin=0.05, bool writeOnModelFile=true)
 Set the parameters of Segmentation's crop object. More...
 
eErrorType SR_GetSegTestIsToStoreCroppedImage (SegTestHandle handle, bool *isToStoreCroppedImage, int *defaultCropSize, eModeOfCropLargeObjects *modeOfCropLargeObjects, float *margin)
 Get the parameters of Segmentation's crop object. More...
 

Detailed Description

Parameters about how to crop the image containing a segmented object.

Function Documentation

◆ SR_GetSegTestIsToStoreCroppedImage()

eErrorType SR_GetSegTestIsToStoreCroppedImage ( SegTestHandle  handle,
bool *  isToStoreCroppedImage,
int *  defaultCropSize,
eModeOfCropLargeObjects *  modeOfCropLargeObjects,
float *  margin 
)

Get the parameters of Segmentation's crop object.

Parameters
handlesegmentation file handler
[out]isToStoreCroppedImage
[out]defaultCropSize
[out]modeOfCropLargeObjects
[out]margin
Examples
ExampleSeg+ClsRuntime.cpp.

◆ SR_SetSegTestIsToStoreCroppedImage()

eErrorType SR_SetSegTestIsToStoreCroppedImage ( SegTestHandle  handle,
bool  isToStoreCroppedImage,
int  defaultCropSize,
eModeOfCropLargeObjects  modeOfCropLargeObjects = SR_CROP_BY_OBJECTSIZE_N_RESIZE_TO_CROPSIZE,
float  margin = 0.05,
bool  writeOnModelFile = true 
)

Set the parameters of Segmentation's crop object.

Parameters
handlesegmentation file handler
isToStoreCroppedImage
defaultCropSize
modeOfCropLargeObjects
margin
writeOnModelFileoverwrite on model file or not
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, and ExampleSuperResolution+SegRuntime.cpp.