SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
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). 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). 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). 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...
 
eErrorType SR_ApplySegTestForCompressedBinaryOutput (SegTestHandle handle, const void *imageData, const int height, const int width, const int channels, const unsigned int binarySizeInBytes, void *binaryOut)
 Apply segmentation algorithm to image and get compressed binary cv8u output. More...
 

Detailed Description

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

Function Documentation

◆ SR_ApplySegTestForCompressedBinaryOutput()

eErrorType SR_ApplySegTestForCompressedBinaryOutput ( SegTestHandle  handle,
const void *  imageData,
const int  height,
const int  width,
const int  channels,
const unsigned int  binarySizeInBytes,
void *  binaryOut 
)

Apply segmentation algorithm to image and get compressed binary cv8u output.

Parameters
handlesegmentation file handler
imageDaata
height
width
channels
binarySizeInBytes
[out]binaryOutput

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

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

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

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.