SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Segmentation's inspection functions

Functions

eErrorType SR_ApplySegTestFromImageFile (SegTestHandle handle, const char *imagePath, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to image by file path. More...
 
eErrorType SR_ApplySegTestFromImageFileByWideCharPath (SegTestHandle handle, const wchar_t *imagePath, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to image by file path. More...
 
eErrorType SR_ApplySegTestFrom8bitCharGrayArray (SegTestHandle handle, const unsigned char *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 1-channel image by 8-bit data. More...
 
eErrorType SR_ApplySegTestFrom8bitCharColorArray (SegTestHandle handle, const unsigned char *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 3-channels(BGR) image by 8-bit data. More...
 
eErrorType SR_ApplySegTestFromUnsignedIntColorArray (SegTestHandle handle, const unsigned int *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 4-channels(BGRA) image by 8-bit data. More...
 
eErrorType SR_ApplySegTestFrom16bitCharGrayArray (SegTestHandle handle, const unsigned char *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 1-channel image by 16-bit data. More...
 
eErrorType SR_ApplySegTestFrom16bitCharColorArray (SegTestHandle handle, const unsigned char *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 3-channels(BGR) image by 16-bit data. More...
 
eErrorType SR_ApplySegTestFrom16bitUnsignedIntColorArray (SegTestHandle handle, const unsigned int *imageData, const int height, const int width, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to 4-channels(BGRA) image by 16-bit data. More...
 
eErrorType SR_ApplySegTestFromMultiple8bitCharGrayArrays (SegTestHandle handle, int numberOfImages, unsigned char **imageData, int *heights, int *widths, SegTestResult *segTestResults, int flag)
 Apply segmentation algorithm to 1-channel images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplySegTestFromMultiple8bitCharColorArrays (SegTestHandle handle, int numberOfImages, unsigned char **imageData, int *heights, int *widths, SegTestResult *segTestResults, int flag)
 Apply segmentation algorithm to 3-channels(BGR) images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplySegTestFromMultipleUnsignedIntColorArrays (SegTestHandle handle, int numberOfImages, unsigned int **imageData, int *heights, int *widths, SegTestResult *segTestResults, int flag)
 Apply segmentation algorithm to 4-channels(BGRA) images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplySegTestFromMultiPage8bitCharArrays (SegTestHandle handle, int numOfPages, unsigned char **imageData, int height, int width, int *channels, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to multi-page image by 8-bit data (multi-page). More...
 
eErrorType SR_ApplySegTestFromMultiPageImageFileByWideCharPath (SegTestHandle handle, int numOfPages, const wchar_t **imagePaths, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to multi-page image by file path (multi-page). More...
 
eErrorType SR_ApplySegTestFromMultiPageImageFileByMultiByteCharPath (SegTestHandle handle, int numOfPages, const char **imagePaths, SegTestResult segTestResult, int flag)
 Apply segmentation algorithm to multi-page image by file path (multi-page). More...
 
eErrorType SR_ApplySegTestFromDetectedBoxes (SegTestHandle handle, int numberOfBoxes, SR_DetectedBox *detectedBoxes, SegTestResult *segTestResults, int flag)
 Apply segmentation algorithm to SR_DetectedBox::croppedImage. More...
 

Detailed Description

Inspect images by applying Saige Vision's segmentation algorithms.
Images can be file path or data array.
Segmentation offers Batch inspection mode which is to inspect multiple images at once.

Function Documentation

◆ SR_ApplySegTestFrom16bitCharColorArray()

eErrorType SR_ApplySegTestFrom16bitCharColorArray ( SegTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 3-channels(BGR) image by 16-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSegPostProcess.cpp, and ExampleSegRuntime.cpp.

◆ SR_ApplySegTestFrom16bitCharGrayArray()

eErrorType SR_ApplySegTestFrom16bitCharGrayArray ( SegTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 1-channel image by 16-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSegPostProcess.cpp, and ExampleSegRuntime.cpp.

◆ SR_ApplySegTestFrom16bitUnsignedIntColorArray()

eErrorType SR_ApplySegTestFrom16bitUnsignedIntColorArray ( SegTestHandle  handle,
const unsigned int *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 4-channels(BGRA) image by 16-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSegPostProcess.cpp, and ExampleSegRuntime.cpp.

◆ SR_ApplySegTestFrom8bitCharColorArray()

eErrorType SR_ApplySegTestFrom8bitCharColorArray ( SegTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 3-channels(BGR) image by 8-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, and ExampleSegRuntimeSimple.cpp.

◆ SR_ApplySegTestFrom8bitCharGrayArray()

eErrorType SR_ApplySegTestFrom8bitCharGrayArray ( SegTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 1-channel image by 8-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeSimple.cpp, and ExampleSuperResolution+SegRuntime.cpp.

◆ SR_ApplySegTestFromDetectedBoxes()

eErrorType SR_ApplySegTestFromDetectedBoxes ( SegTestHandle  handle,
int  numberOfBoxes,
SR_DetectedBox *  detectedBoxes,
SegTestResult *  segTestResults,
int  flag 
)

Apply segmentation algorithm to SR_DetectedBox::croppedImage.

Parameters
handlesegmentation file handler
numberOfBoxes
detectedBoxes
[out]segTestResults
flageSegTestOutputType

◆ SR_ApplySegTestFromImageFile()

eErrorType SR_ApplySegTestFromImageFile ( SegTestHandle  handle,
const char *  imagePath,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to image by file path.

Parameters
handlesegmentation file handler
imagePath
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, and ExampleSegRuntimeSimple.cpp.

◆ SR_ApplySegTestFromImageFileByWideCharPath()

eErrorType SR_ApplySegTestFromImageFileByWideCharPath ( SegTestHandle  handle,
const wchar_t *  imagePath,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to image by file path.

Parameters
handlesegmentation file handler
imagePath
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, and ExampleSegRuntimeSimple.cpp.

◆ SR_ApplySegTestFromMultiPage8bitCharArrays()

eErrorType SR_ApplySegTestFromMultiPage8bitCharArrays ( SegTestHandle  handle,
int  numOfPages,
unsigned char **  imageData,
int  height,
int  width,
int *  channels,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to multi-page image by 8-bit data (multi-page).

Parameters
handlesegmentation file handler
numOfPages
imageData
height
width
channelsmemory address holding the number of channels for each page. The length of memory must be equal to numOfPages
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSegRuntimeMultiPage.cpp.

◆ SR_ApplySegTestFromMultiPageImageFileByMultiByteCharPath()

eErrorType SR_ApplySegTestFromMultiPageImageFileByMultiByteCharPath ( SegTestHandle  handle,
int  numOfPages,
const char **  imagePaths,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to multi-page image by file path (multi-page).

Parameters
handlesegmentation file handler
numOfPages
imagePaths
[out]segTestResult
flageSegTestOutputType

◆ SR_ApplySegTestFromMultiPageImageFileByWideCharPath()

eErrorType SR_ApplySegTestFromMultiPageImageFileByWideCharPath ( SegTestHandle  handle,
int  numOfPages,
const wchar_t **  imagePaths,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to multi-page image by file path (multi-page).

Parameters
handlesegmentation file handler
numOfPages
imagePaths
[out]segTestResult
flageSegTestOutputType

◆ SR_ApplySegTestFromMultiple8bitCharColorArrays()

eErrorType SR_ApplySegTestFromMultiple8bitCharColorArrays ( SegTestHandle  handle,
int  numberOfImages,
unsigned char **  imageData,
int *  heights,
int *  widths,
SegTestResult *  segTestResults,
int  flag 
)

Apply segmentation algorithm to 3-channels(BGR) images by 8-bit data (Batch inspection mode).

Parameters
handlesegmentation file handler
numberOfImages
imageData
heights
widths
[out]segTestResults
flageSegTestOutputType
Examples
ExampleSegRuntimeBatchInspection.cpp.

◆ SR_ApplySegTestFromMultiple8bitCharGrayArrays()

eErrorType SR_ApplySegTestFromMultiple8bitCharGrayArrays ( SegTestHandle  handle,
int  numberOfImages,
unsigned char **  imageData,
int *  heights,
int *  widths,
SegTestResult *  segTestResults,
int  flag 
)

Apply segmentation algorithm to 1-channel images by 8-bit data (Batch inspection mode).

Parameters
handlesegmentation file handler
numberOfImages
imageData
heights
widths
[out]segTestResults
flageSegTestOutputType
Examples
ExampleSegRuntimeBatchInspection.cpp.

◆ SR_ApplySegTestFromMultipleUnsignedIntColorArrays()

eErrorType SR_ApplySegTestFromMultipleUnsignedIntColorArrays ( SegTestHandle  handle,
int  numberOfImages,
unsigned int **  imageData,
int *  heights,
int *  widths,
SegTestResult *  segTestResults,
int  flag 
)

Apply segmentation algorithm to 4-channels(BGRA) images by 8-bit data (Batch inspection mode).

Parameters
handlesegmentation file handler
numberOfImages
imageData
heights
widths
[out]segTestResults
flageSegTestOutputType
Examples
ExampleSegRuntimeBatchInspection.cpp.

◆ SR_ApplySegTestFromUnsignedIntColorArray()

eErrorType SR_ApplySegTestFromUnsignedIntColorArray ( SegTestHandle  handle,
const unsigned int *  imageData,
const int  height,
const int  width,
SegTestResult  segTestResult,
int  flag 
)

Apply segmentation algorithm to 4-channels(BGRA) image by 8-bit data.

Parameters
handlesegmentation file handler
imageData
height
width
[out]segTestResult
flageSegTestOutputType
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, and ExampleSegRuntimeSimple.cpp.