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

Functions

eErrorType SR_ApplyClsTestFromImageFile (ClsTestHandle handle, const char *imagePath, ClsTestResult clsTestResult)
 Apply classification algorithm to image by file path. More...
 
eErrorType SR_ApplyClsTestFromImageFileByWideCharPath (ClsTestHandle handle, const wchar_t *imagePath, ClsTestResult clsTestResult)
 Apply classification algorithm to image by file path. More...
 
eErrorType SR_ApplyClsTestFrom8bitCharGrayArray (ClsTestHandle handle, const unsigned char *imageData, const int height, const int width, ClsTestResult clsTestResult)
 Apply classification algorithm to 1-channel image by 8-bit data. More...
 
eErrorType SR_ApplyClsTestFrom8bitCharColorArray (ClsTestHandle handle, const unsigned char *imageData, const int height, const int width, ClsTestResult clsTestResult)
 Apply classification algorithm to 3-channels(BGR) image by 8-bit data. More...
 
eErrorType SR_ApplyClsTestFromUnsignedIntColorArray (ClsTestHandle handle, const unsigned int *imageData, const int height, const int width, ClsTestResult clsTestResult)
 Apply classification algorithm to 4-channels(BGRA) image by 8-bit data. More...
 
eErrorType SR_ApplyClsTestFromMultiple8bitCharGrayArrays (ClsTestHandle handle, int numberOfImages, unsigned char **imageData, int *heights, int *widths, ClsTestResult *clsTestResults)
 Apply classification algorithm to 1-channel images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplyClsTestFromMultiple8bitCharColorArrays (ClsTestHandle handle, int numberOfImages, unsigned char **imageData, int *heights, int *widths, ClsTestResult *clsTestResults)
 Apply classification algorithm to 3-channels(BGR) images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplyClsTestFromMultipleUnsignedIntColorArrays (ClsTestHandle handle, int numberOfImages, unsigned int **imageData, int *heights, int *widths, ClsTestResult *clsTestResults)
 Apply classification algorithm to 4-channels(BGRA) images by 8-bit data (Batch inspection mode). More...
 
eErrorType SR_ApplyClsTestFromSegmentedObjects (ClsTestHandle handle, int numberOfObjects, SR_SegmentedObject *segmentedObjects, ClsTestResult *clsTestResults)
 Apply classification algorithm to SR_SegmentedObject::croppedImage (Batch inspection mode). More...
 

Detailed Description

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

Function Documentation

◆ SR_ApplyClsTestFrom8bitCharColorArray()

eErrorType SR_ApplyClsTestFrom8bitCharColorArray ( ClsTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
ClsTestResult  clsTestResult 
)

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

Parameters
handleclassification file handler
imageData
height
width
[out]clsTestResult
Examples
ExampleClsRuntime.cpp, and ExampleClsRuntimeSimple.cpp.

◆ SR_ApplyClsTestFrom8bitCharGrayArray()

eErrorType SR_ApplyClsTestFrom8bitCharGrayArray ( ClsTestHandle  handle,
const unsigned char *  imageData,
const int  height,
const int  width,
ClsTestResult  clsTestResult 
)

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

Parameters
handleclassification file handler
imageData
height
width
[out]clsTestResult
Examples
ExampleClsRuntime.cpp, and ExampleClsRuntimeSimple.cpp.

◆ SR_ApplyClsTestFromImageFile()

eErrorType SR_ApplyClsTestFromImageFile ( ClsTestHandle  handle,
const char *  imagePath,
ClsTestResult  clsTestResult 
)

Apply classification algorithm to image by file path.

Parameters
handleclassification file handler
imagePath
[out]clsTestResult
Examples
ExampleClsRuntime.cpp, and ExampleClsRuntimeSimple.cpp.

◆ SR_ApplyClsTestFromImageFileByWideCharPath()

eErrorType SR_ApplyClsTestFromImageFileByWideCharPath ( ClsTestHandle  handle,
const wchar_t *  imagePath,
ClsTestResult  clsTestResult 
)

Apply classification algorithm to image by file path.

Parameters
handleclassification file handler
imagePath
[out]clsTestResult
Examples
ExampleClsRuntime.cpp, and ExampleClsRuntimeSimple.cpp.

◆ SR_ApplyClsTestFromMultiple8bitCharColorArrays()

eErrorType SR_ApplyClsTestFromMultiple8bitCharColorArrays ( ClsTestHandle  handle,
int  numberOfImages,
unsigned char **  imageData,
int *  heights,
int *  widths,
ClsTestResult *  clsTestResults 
)

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

Parameters
handleclassification file handler
numberOfImages
imageData
heights
widths
[out]clsTestResults
Examples
ExampleClsRuntimeBatchInspection.cpp.

◆ SR_ApplyClsTestFromMultiple8bitCharGrayArrays()

eErrorType SR_ApplyClsTestFromMultiple8bitCharGrayArrays ( ClsTestHandle  handle,
int  numberOfImages,
unsigned char **  imageData,
int *  heights,
int *  widths,
ClsTestResult *  clsTestResults 
)

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

Parameters
handleclassification file handler
numberOfImages
imageData
heights
widths
[out]clsTestResults
Examples
ExampleClsRuntimeBatchInspection.cpp.

◆ SR_ApplyClsTestFromMultipleUnsignedIntColorArrays()

eErrorType SR_ApplyClsTestFromMultipleUnsignedIntColorArrays ( ClsTestHandle  handle,
int  numberOfImages,
unsigned int **  imageData,
int *  heights,
int *  widths,
ClsTestResult *  clsTestResults 
)

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

Parameters
handleclassification file handler
numberOfImages
imageData
heights
widths
[out]clsTestResults
Examples
ExampleClsRuntimeBatchInspection.cpp.

◆ SR_ApplyClsTestFromSegmentedObjects()

eErrorType SR_ApplyClsTestFromSegmentedObjects ( ClsTestHandle  handle,
int  numberOfObjects,
SR_SegmentedObject *  segmentedObjects,
ClsTestResult *  clsTestResults 
)

Apply classification algorithm to SR_SegmentedObject::croppedImage (Batch inspection mode).

Parameters
handleclassification file handler
numberOfObjects
segmentedObjects
[out]clsTestResults
Examples
ExampleSeg+ClsRuntime.cpp.

◆ SR_ApplyClsTestFromUnsignedIntColorArray()

eErrorType SR_ApplyClsTestFromUnsignedIntColorArray ( ClsTestHandle  handle,
const unsigned int *  imageData,
const int  height,
const int  width,
ClsTestResult  clsTestResult 
)

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

Parameters
handleclassification file handler
imageData
height
width
[out]clsTestResult
Examples
ExampleClsRuntime.cpp, and ExampleClsRuntimeSimple.cpp.