|
| eErrorType | SR_GetSegTestNumberOfClassesWithoutBG (SegTestHandle handle, int *numberOfClasses) |
| | Get the number of classes. More...
|
| |
| eErrorType | SR_GetSegTestMaxStrLenOfClassName (SegTestHandle handle, int *len) |
| | Get a maximum length of class name. More...
|
| |
| eErrorType | SR_GetSegTestOneClassNameWithWideCharByIdxWithoutBG (SegTestHandle handle, const int classIdx, wchar_t *className) |
| | Get a wide char name of certain class by given index. More...
|
| |
| eErrorType | SR_GetSegTestOneClassNameWithMultiByteCharByIdxWithoutBG (SegTestHandle handle, const int classIdx, char *className) |
| | Get a multi byte char name of certain class by given index. More...
|
| |
| eErrorType | SR_GetSegTestOneClassColorByIdxWithoutBG (SegTestHandle handle, const int classIdx, int *classColor) |
| | Get a color of certain class by given index. More...
|
| |
| eErrorType | SR_GetSegTrainedVersion (SegTestHandle handle, int *trainedVersionMajor, int *trainedVersionMinor, int *trainedVersionPatch) |
| | Get a trained version of model file, -1 means before v1.4.8. More...
|
| |
int numOfClasses = 0;
int lengthOfClassName = 0;
for (int i = 0; i < numOfClasses; i++){
wchar_t* w_name = new wchar_t[lengthOfClassName];
delete[] w_name;
char* name = new char[lengthOfClassName];
delete[] name;
int class_color = 0;
unsigned char R = (class_color >> 16) & 0xFF;
unsigned char G = (class_color >> 8) & 0xFF;
unsigned char B = (class_color) & 0xFF;
}
eErrorType SR_GetSegTestOneClassNameWithWideCharByIdxWithoutBG(SegTestHandle handle, const int classIdx, wchar_t *className)
Get a wide char name of certain class by given index.
eErrorType SR_GetSegTestMaxStrLenOfClassName(SegTestHandle handle, int *len)
Get a maximum length of class name.
eErrorType SR_GetSegTestNumberOfClassesWithoutBG(SegTestHandle handle, int *numberOfClasses)
Get the number of classes.
eErrorType SR_GetSegTestOneClassNameWithMultiByteCharByIdxWithoutBG(SegTestHandle handle, const int classIdx, char *className)
Get a multi byte char name of certain class by given index.
eErrorType SR_GetSegTestOneClassColorByIdxWithoutBG(SegTestHandle handle, const int classIdx, int *classColor)
Get a color of certain class by given index.