SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
Segmentation's handle construction

Typedefs

typedef void * SegTestHandle
 Segmentation file handler. More...
 
typedef void * SegTestResult
 Segmentation inspection results handler. More...
 

Functions

SegTestHandle SR_CreateSegTestHandle (const char *filePath)
 Create a SegTestHandle via multi byte char path. More...
 
eErrorType SR_CreateSegTestHandle_ErrorType (SegTestHandle *segTestHandle, const char *filePath)
 Create a SegTestHandle via multi byte char path. More...
 
SegTestHandle SR_CreateSegTestHandleByWideCharPath (const wchar_t *filePath)
 Create a SegTestHandle via wide char path. More...
 
eErrorType SR_CreateSegTestHandleByWideCharPath_ErrorType (SegTestHandle *segTestHandle, const wchar_t *filePath)
 Create a SegTestHandle via wide char path. More...
 
SegTestResult SR_MakeSegTestResult ()
 Construct a SegTestResult. More...
 
eErrorType SR_MakeSegTestResult_ErrorType (SegTestResult *segTestResult)
 Construct a SegTestResult. More...
 

Detailed Description

Construct SegTestHandle or SegTestResult.

Typedef Documentation

◆ SegTestHandle

typedef void* SegTestHandle

Segmentation file handler.

SegTestHandle 은 segmentation 파일을 관장하는 handle입니다. 하나의 SegTestHandle 은 하나의 파일을 관리하며 해당 파일을 통한 검사와 관련된 정보들을 가지고 있습니다.

See also
SR_CreateSegTestHandleByWideCharPath, SR_DestroySegTestHandle

◆ SegTestResult

typedef void* SegTestResult

Segmentation inspection results handler.

SegTestResult 는 segmentation 검사 결과를 다루는 handle입니다. SegTestResult 를 Inspection functions 의 입력으로 넣어주면 검사 후 검사 결과 정보들(SR_SegmentedObject 등)을 받아 올 수 있습니다.

See also
SR_MakeSegTestResult, SR_DeleteSegTestResult

Function Documentation

◆ SR_CreateSegTestHandle()

SegTestHandle SR_CreateSegTestHandle ( const char *  filePath)

Create a SegTestHandle via multi byte char path.

Parameters
filePathfile path of trained model
Returns
segmentation file handler. Return nullptr if filePath is invalid.
See also
SR_CreateSegTestHandleByWideCharPath
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.

◆ SR_CreateSegTestHandle_ErrorType()

eErrorType SR_CreateSegTestHandle_ErrorType ( SegTestHandle *  segTestHandle,
const char *  filePath 
)

Create a SegTestHandle via multi byte char path.

Parameters
[out]segmentationfile handler
filePathfile path of trained model
See also
SR_CreateSegTestHandleByWideCharPath
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.

◆ SR_CreateSegTestHandleByWideCharPath()

SegTestHandle SR_CreateSegTestHandleByWideCharPath ( const wchar_t *  filePath)

Create a SegTestHandle via wide char path.

Parameters
filePathfile path of trained model
Returns
segmentation file handler. Return nullptr if filePath is invalid.
See also
SR_CreateSegTestHandle
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.

◆ SR_CreateSegTestHandleByWideCharPath_ErrorType()

eErrorType SR_CreateSegTestHandleByWideCharPath_ErrorType ( SegTestHandle *  segTestHandle,
const wchar_t *  filePath 
)

Create a SegTestHandle via wide char path.

Parameters
[out]segmentationfile handler
filePathfile path of trained model
See also
SR_CreateSegTestHandle
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegErrorHandling.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, ExampleSegRuntimeSimple.cpp, and ExampleSuperResolution+SegRuntime.cpp.

◆ SR_MakeSegTestResult()

SegTestResult SR_MakeSegTestResult ( )

◆ SR_MakeSegTestResult_ErrorType()

eErrorType SR_MakeSegTestResult_ErrorType ( SegTestResult *  segTestResult)

Construct a SegTestResult.

Parameters
[out]segmentationtest result handler
Warning
SegTestResult should be destroyed by SR_DeleteSegTestResult after inspection finished.
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, and ExampleSegRuntimeMultiPage.cpp.