SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
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). 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). 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). More...
 
eErrorType SR_ApplyClsTestFromSegmentedObjects (ClsTestHandle handle, int numberOfObjects, SR_SegmentedObject *segmentedObjects, ClsTestResult *clsTestResults)
 Apply classification algorithm to SR_SegmentedObject::croppedImage (batch-inspection). More...
 

Detailed Description

Saige Vision의 Classification 알고리즘을 적용하여 이미지를 검사합니다.
이미지는 파일 경로 혹은 데이터 배열의 형식을 갖습니다.
Classification 은 여러장의 이미지를 한번에 검사하는 batch-inspection 을 제공합니다.

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).

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).

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).

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).

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.