Exported functions for SIL label handling. More...
Typedefs | |
| typedef cvbbool_t(* | pfTransformSilLabel) (void *pPrivate, TSILLABEL LabelIn, TSILLABEL &LabelOut) |
| typedef void * | TSILLABEL |
Enumerations | |
| enum | TSilLabelType { SLT_Undefined = -1 , SLT_String = 0 , SLT_Float } |
Functions | |
| cvbval_t | SilCompareLabels (TSILLABEL LabelA, TSILLABEL LabelB) |
| Compares two SIL label objects for equality. More... | |
| TSILLABEL | SilCreateStringLabel (const char *szString) |
| Creates a SIL string label object using the input string. More... | |
| TSILLABEL | SilCreateStringLabelW (const wchar_t *szString) |
| Creates a SIL string label object using the input string. More... | |
| TSILLABEL | SilCreateVectorLabel (const float *pData, size_t nDimension) |
| Creates a SIL string label object using the input string. More... | |
| cvbres_t | SilGetExcludedFlag (TSILLABEL Label, cvbbool_t &Excluded) |
| Check whether the data associated with a label belongs to the set of excluded classes. More... | |
| cvbres_t | SilGetFloatVectorLabel (TSILLABEL Handle, float *pTarget, size_t &TargetSize) |
| Retrieve the float vector from a TSILLABEL object. More... | |
| cvbres_t | SilGetStringLabel (TSILLABEL Handle, char *szTarget, size_t &TargetSize) |
| Retrieves the string label in the TSILLABEL object. More... | |
| cvbres_t | SilGetStringLabelW (TSILLABEL Handle, wchar_t *szTarget, size_t &TargetSize) |
| Retrieves the string label in the TSILLABEL object. More... | |
| cvbres_t | SilSetExcludedFlag (TSILLABEL Label, cvbbool_t Exclude) |
| Define whether the data associated with a label belongs to the set of excluded classes. More... | |
| cvbbool_t | SilVerifyLabelCompatibility (TSILLABEL Label, TSILLABELTYPE LabelType) |
| Verifies if a label is compatible with a label type descriptor. More... | |
Exported functions for SIL label handling.
SIL label transformation callback.
| [in] | pPrivate | Private data pointer. |
| [in] | LabelIn | Label to be transformed. |
| [out] | LabelOut | Transformed label. |
TRUE if the transformation succeeded, FALSE otherwise (FALSE will usually stop the iteration). | typedef void* TSILLABEL |
Handle to a SIL label entry.
| enum TSilLabelType |
Compares two SIL label objects for equality.
| [in] | LabelA | Label to be compared. |
| [in] | LabelB | Label to be compared. |
| TSILLABEL SilCreateStringLabel | ( | const char * | szString | ) |
Creates a SIL string label object using the input string.
This label can then be used for creating/adding new entries to a TSIL using SilAddItem. TSIL objects created with/for string labels are suitable for classification tasks. Note that the object needs to be disposed of after use by calling ReleaseObject on it.
| [in] | szString | name for the label |
| TSILLABEL SilCreateStringLabelW | ( | const wchar_t * | szString | ) |
Creates a SIL string label object using the input string.
This label can then be used for creating/adding new entries to a TSIL using SilAddItem. TSIL objects created with/for string labels are suitable for classification tasks. Note that the object needs to be disposed of after use by calling ReleaseObject on it.
| [in] | szString | name for the label |
| TSILLABEL SilCreateVectorLabel | ( | const float * | pData, |
| size_t | nDimension | ||
| ) |
Creates a SIL string label object using the input string.
This label can then be used for creating/adding new entries to a TSIL using SilAddItem. TSIL objects created with/for vector labels are suitable for regression tasks. Note that the object needs to be disposed of after use by calling ReleaseObject on it.
| [in] | pData | pointer to the vector data |
| [in] | nDimension | Size of the data pointed to by pData. |
| cvbres_t SilGetExcludedFlag | ( | TSILLABEL | Label, |
| cvbbool_t & | Excluded | ||
| ) |
Check whether the data associated with a label belongs to the set of excluded classes.
| [in] | Label | Label on which to check. |
| [out] | Excluded | current exclusion status |
HRESULT (<0: error) | cvbres_t SilGetFloatVectorLabel | ( | TSILLABEL | Handle, |
| float * | pTarget, | ||
| size_t & | TargetSize | ||
| ) |
Retrieve the float vector from a TSILLABEL object.
Copies the vector label in the TSILLABEL object to the location indicated by pTarget. pTarget must be big enough to hold the whole label vector (verify with SilGetFloatVectorLabelDim if necessary).
If the input LabelType does not refer to a float vector, an error will be returned.
| [in] | Handle | Input label object Handle. |
| [in] | pTarget | Buffer to which the label vector should be copied. |
| [in,out] | TargetSize | Input: size of the buffer pointed to by szTarget, output: number of floats copied. buffer size should be given in number of elements, not in bytes! |
| cvbres_t SilGetStringLabel | ( | TSILLABEL | Handle, |
| char * | szTarget, | ||
| size_t & | TargetSize | ||
| ) |
Retrieves the string label in the TSILLABEL object.
Copies the string's characters to the location indicated by szTarget. If szTarget == NULL, only the length of the string will be written into the variable TargetSize.
If the Handle does not refer to a string label, an error will be returned.
| [in] | Handle | Input label object Handle. |
| [in] | szTarget | Buffer to which the label string should be copied. |
| [in,out] | TargetSize | Input: size of the buffer pointed to by szTarget, output: number of bytes copied (incl. terminating 0). |
| cvbres_t SilGetStringLabelW | ( | TSILLABEL | Handle, |
| wchar_t * | szTarget, | ||
| size_t & | TargetSize | ||
| ) |
Retrieves the string label in the TSILLABEL object.
Copies the string's characters to the location indicated by szTarget. If szTarget == NULL, only the length of the string will be written into the variable TargetSize.
If the Handle does not refer to a string label, an error will be returned.
| [in] | Handle | Input label object Handle. |
| [in] | szTarget | Buffer to which the label string should be copied. |
| [in,out] | TargetSize | Input: size of the buffer pointed to by szTarget, output: number of bytes copied (incl. terminating 0). |
| cvbres_t SilSetExcludedFlag | ( | TSILLABEL | Label, |
| cvbbool_t | Exclude | ||
| ) |
Define whether the data associated with a label belongs to the set of excluded classes.
| [in] | Label | Label on which to define. |
| [in] | Exclude | Exclusion status. |
HRESULT (<0: error) | cvbbool_t SilVerifyLabelCompatibility | ( | TSILLABEL | Label, |
| TSILLABELTYPE | LabelType | ||
| ) |
Verifies if a label is compatible with a label type descriptor.
| [in] | Label | Label object to be verified. |
| [in] | LabelType | Label type descriptor object. |
Label is compatible with LabelType, else FALSE.