SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Segmentation's multi-page information

Functions

eErrorType SR_GetSegTestNumberOfPages (SegTestHandle handle, int *numberOfPages)
 Get the number of pages. More...
 
eErrorType SR_GetSegTestMaxStrLenOfPageName (SegTestHandle handle, int *len)
 Get a maximum length of page name. More...
 
eErrorType SR_GetSegTestOnePageNameWithWideChar (SegTestHandle handle, const int pageIdx, wchar_t *pageName)
 Get a wide char name of certain page by given index. More...
 
eErrorType SR_GetSegTestOnePageNameWithMultiByteChar (SegTestHandle handle, const int pageIdx, char *pageName)
 Get a multi byte char name of certain page by given index. More...
 

Detailed Description

Get Segmentation's multi-page-info.

int numOfPages = 0;
// Get number of pages
eErrorType error = SR_GetSegTestNumberOfPages(handle, &numOfPages);
int lengthOfPageName = 0;
error = SR_GetSegTestMaxStrLenOfPageName(handle, &lengthOfPageName);
for (int i = 0; i < numOfPages; i++){
// Get page name by wchar_t
wchar_t* w_name = new wchar_t[lengthOfPageName];
error = SR_GetSegTestOnePageNameWithWideChar(handle, i, w_name);
delete[] w_name;
// Get page name by char
char* name = new char[lengthOfPageName];
delete[] name;
}

Function Documentation

◆ SR_GetSegTestMaxStrLenOfPageName()

eErrorType SR_GetSegTestMaxStrLenOfPageName ( SegTestHandle  handle,
int *  len 
)

Get a maximum length of page name.

Parameters
handlesegmentation file handler
[out]lenmaximum length of page name
Examples
ExampleSegRuntimeMultiPage.cpp.

◆ SR_GetSegTestNumberOfPages()

eErrorType SR_GetSegTestNumberOfPages ( SegTestHandle  handle,
int *  numberOfPages 
)

Get the number of pages.

Parameters
handlesegmentation file handler
[out]numberOfPages
Examples
ExampleSegRuntimeMultiPage.cpp.

◆ SR_GetSegTestOnePageNameWithMultiByteChar()

eErrorType SR_GetSegTestOnePageNameWithMultiByteChar ( SegTestHandle  handle,
const int  pageIdx,
char *  pageName 
)

Get a multi byte char name of certain page by given index.

Parameters
handlesegmentation file handler
pageIdx
[out]pageName
Examples
ExampleSegRuntimeMultiPage.cpp.

◆ SR_GetSegTestOnePageNameWithWideChar()

eErrorType SR_GetSegTestOnePageNameWithWideChar ( SegTestHandle  handle,
const int  pageIdx,
wchar_t *  pageName 
)

Get a wide char name of certain page by given index.

Parameters
handlesegmentation file handler
pageIdx
[out]pageName
SR_GetSegTestOnePageNameWithWideChar
eErrorType SR_GetSegTestOnePageNameWithWideChar(SegTestHandle handle, const int pageIdx, wchar_t *pageName)
Get a wide char name of certain page by given index.
SR_GetSegTestOnePageNameWithMultiByteChar
eErrorType SR_GetSegTestOnePageNameWithMultiByteChar(SegTestHandle handle, const int pageIdx, char *pageName)
Get a multi byte char name of certain page by given index.
eErrorType
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:25
SR_GetSegTestMaxStrLenOfPageName
eErrorType SR_GetSegTestMaxStrLenOfPageName(SegTestHandle handle, int *len)
Get a maximum length of page name.
SR_GetSegTestNumberOfPages
eErrorType SR_GetSegTestNumberOfPages(SegTestHandle handle, int *numberOfPages)
Get the number of pages.