Exported functions for SIL handling. More...
Typedefs | |
typedef void * | TSIL |
Functions | |
cvbres_t | SilAddItem (TSIL Sil, TSILDATA Data, TSILLABEL Label) |
Add a new entry into the SIL. More... | |
cvbres_t | SilAddNamedImageItem (TSIL Sil, const char *szName, IMG srcImage, cvbdim_t nPosX, cvbdim_t nPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddNamedImageItemEx (TSIL Sil, const char *szName, IMG srcImage, cvbdim_t nOriginPosX, cvbdim_t nOriginPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddNamedImageItemExW (TSIL Sil, const wchar_t *szName, IMG srcImage, cvbdim_t nOriginPosX, cvbdim_t nOriginPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddNamedImageItemW (TSIL Sil, const wchar_t *szName, IMG srcImage, cvbdim_t nPosX, cvbdim_t nPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddNamedVectorItem (TSIL Sil, const char *szName, const float *pData, size_t numEntries) |
Add a new vector data entry to a SIL under a class name. More... | |
cvbres_t | SilAddNamedVectorItemW (TSIL Sil, const wchar_t *szName, const float *pData, size_t numEntries) |
Add a new vector data entry to a SIL under a class name. More... | |
cvbres_t | SilAddRegressionImageItem (TSIL Sil, const float *pLabel, size_t labelSize, IMG srcImage, cvbdim_t nPosX, cvbdim_t nPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddRegressionImageItemEx (TSIL Sil, const float *pLabel, size_t labelSize, IMG srcImage, cvbdim_t nOriginPosX, cvbdim_t nOriginPosY) |
Add a new image data entry to a SIL under a class name. More... | |
cvbres_t | SilAddRegressionVectorItem (TSIL Sil, const float *pLabel, size_t labelSize, const float *pData, size_t numEntries) |
Add a new vector data entry to a SIL under a class name. More... | |
cvbres_t | SilChangeStringLabel (TSIL Sil, cvbval_t LabelIndex, const char *szString) |
Modify a string label's contents. More... | |
cvbres_t | SilChangeStringLabelW (TSIL Sil, cvbval_t LabelIndex, const wchar_t *szString) |
Modify a string label's contents. More... | |
cvbres_t | SilChangeVectorLabel (TSIL Sil, cvbval_t LabelIndex, float *pData, size_t nDimension) |
Modify a vector label's contents. More... | |
TSIL | SilCreate (TSILLABELTYPE LabelType, TSILDATATYPE DataType) |
Creates a Sample Image List using the indicated label and data type. More... | |
cvbres_t | SilDeleteData (TSIL Sil, cvbval_t Index) |
Remove an entry from a SIL's data list. More... | |
cvbres_t | SilDeleteDataByLabel (TSIL Sil, cvbval_t LabelIndex, cvbval_t DataIndex) |
Remove an entry from a SIL label's data list. More... | |
cvbres_t | SilDeleteLabel (TSIL Sil, cvbval_t Index) |
Remove an entry from a TSIL's label list. More... | |
cvbres_t | SilGetComment (TSIL Sil, char *szComment, size_t &CommentSize) |
Gets the comment string from a SIL. More... | |
cvbres_t | SilGetCommentW (TSIL Sil, wchar_t *szComment, size_t &CommentSize) |
Gets the comment string from a SIL. More... | |
cvbres_t | SilGetCreationDate (TSIL Sil, SYSTEMTIME &Date) |
Get the system time at creation of the SIL. More... | |
TSILDATA | SilGetData (TSIL Sil, cvbval_t Index) |
Get a SIL data list entry. More... | |
TSILDATA | SilGetDataByLabel (TSIL Sil, cvbval_t LabelIndex, cvbval_t DataIndex) |
Get a SIL data list entry associated with a specific label. More... | |
cvbval_t | SilGetDataIndex (TSIL Sil, TSILDATA Data) |
Get the index of a data object inside a TSIL object's data list. More... | |
TSILDATA | SilGetDataReference (TSILLABEL Label, cvbval_t nIndex) |
Get the data list item of a label at the specified index. More... | |
TSILDATATYPE | SilGetDataType (TSIL Sil) |
Gets the data type descriptor object of a SIL. More... | |
TSilDataType | SilGetDataTypeEnum (TSIL Sil) |
Gets the data type of the SIL object as an enumerated value. More... | |
TSILLABEL | SilGetLabel (TSIL Sil, cvbval_t Index) |
Get a SIL label list entry. More... | |
cvbval_t | SilGetLabelIndex (TSIL Sil, TSILLABEL Label) |
Get the index of a label object inside a TSIL object's label list. More... | |
TSILLABEL | SilGetLabelReference (TSILDATA Data, cvbval_t nIndex) |
Get the label for a data object. More... | |
TSILLABELTYPE | SilGetLabelType (TSIL Sil) |
Gets the label type descriptor object of SIL. More... | |
TSilLabelType | SilGetLabelTypeEnum (TSIL Sil) |
Gets the label type of the SIL object as an enumerated value. More... | |
TSILDATA | SilGetMaskData (TSIL Sil) |
Gets the mask data of the SIL. More... | |
cvbres_t | SilGetModificationDate (TSIL Sil, SYSTEMTIME &Date) |
Get the system time at the last modification of the SIL. More... | |
cvbval_t | SilGetNumDataEntries (TSIL Sil) |
Gets the number entries in a SIL's data list. More... | |
cvbval_t | SilGetNumDataReferences (TSILLABEL Label) |
Retrieve the number of data entries associated with the input label. More... | |
cvbval_t | SilGetNumDataReferencesByLabel (TSIL Sil, cvbval_t LabelIndex) |
Retrieve the number of data entries associated with a label. More... | |
cvbval_t | SilGetNumLabelEntries (TSIL Sil) |
Gets the number of label entries in a SIL's label list. More... | |
cvbval_t | SilGetNumLabelReferences (TSILDATA Data) |
Retrieve the number of labels associated with the input data. More... | |
cvbres_t | SilGetStatistics (TSIL Sil, size_t &NumClasses, size_t &MinSampleCount, size_t &MaxSampleCount, double &AverageSampleCount) |
Get the class statistics of a Sil. More... | |
cvbres_t | SilImportFromManto (const char *szSil, TSIL &sil) |
Import a Manto 1 SIL into Manto2. More... | |
cvbres_t | SilImportFromMantoW (const wchar_t *szSil, TSIL &sil) |
Import a Manto 1 SIL into Manto2. More... | |
cvbres_t | SilLoad (const char *szFile, TSIL &Sil) |
Load a SIL from disc. More... | |
cvbres_t | SilLoadW (const wchar_t *szFile, TSIL &Sil) |
Load a SIL from disc. More... | |
cvbres_t | SilSetComment (TSIL Sil, const char *szComment) |
Sets the comment string in the given SIL object. More... | |
cvbres_t | SilSetCommentW (TSIL Sil, const wchar_t *szComment) |
Sets the comment string in the given SIL object. More... | |
cvbres_t | SilSetMaskData (TSIL Sil, TSILDATA MaskData) |
Sets the mask data of the SIL. More... | |
cvbres_t | SilStore (TSIL Sil, const char *szFile) |
Saves the SIL to disc. More... | |
cvbres_t | SilStoreW (TSIL Sil, const wchar_t *szFile) |
Saves the SIL to disc. More... | |
cvbres_t | SilTransformDataList (TSIL SilIn, pfTransformSilData Callback, void *pPrivate, TSIL &SilOut) |
Transform the data list of a SIL with a user-definable callback. More... | |
cvbres_t | SilTransformLabelList (TSIL SilIn, pfTransformSilLabel Callback, void *pPrivate, TSIL &SilOut) |
Transform the label list of a SIL with a user-definable callback. More... | |
Exported functions for SIL handling.
typedef void* TSIL |
Handle to a SIL.
Add a new entry into the SIL.
An entry consists of the combination of data plus label. The data entry will always be added to the Sil no matter whether an identical entry is already present. The label entry however will be substituted for an already present entry if an identical entry is already inside the list of labels (thus avoiding duplicate entries in the Sil's
label list).
[in] | Sil | Sample Image List to be modified. |
[in] | Data | Data entry to be added. |
[in] | Label | Label to be added. |
cvbres_t SilAddNamedImageItem | ( | TSIL | Sil, |
const char * | szName, | ||
IMG | srcImage, | ||
cvbdim_t | nPosX, | ||
cvbdim_t | nPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nPosX | Position at which to extract the image data. |
[in] | nPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddNamedImageItemEx | ( | TSIL | Sil, |
const char * | szName, | ||
IMG | srcImage, | ||
cvbdim_t | nOriginPosX, | ||
cvbdim_t | nOriginPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nOriginPosX | Position at which to extract the image data. |
[in] | nOriginPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddNamedImageItemExW | ( | TSIL | Sil, |
const wchar_t * | szName, | ||
IMG | srcImage, | ||
cvbdim_t | nOriginPosX, | ||
cvbdim_t | nOriginPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nOriginPosX | Position at which to extract the image data. |
[in] | nOriginPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddNamedImageItemW | ( | TSIL | Sil, |
const wchar_t * | szName, | ||
IMG | srcImage, | ||
cvbdim_t | nPosX, | ||
cvbdim_t | nPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nPosX | Position at which to extract the image data. |
[in] | nPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddNamedVectorItem | ( | TSIL | Sil, |
const char * | szName, | ||
const float * | pData, | ||
size_t | numEntries | ||
) |
Add a new vector data entry to a SIL under a class name.
Provides a convenient way of adding a new vector data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | pData | Pointer to the vector data to be added. |
[in] | numEntries | Number of floating point values pointed to by pData . |
HRESULT
(<0: error) cvbres_t SilAddNamedVectorItemW | ( | TSIL | Sil, |
const wchar_t * | szName, | ||
const float * | pData, | ||
size_t | numEntries | ||
) |
Add a new vector data entry to a SIL under a class name.
Provides a convenient way of adding a new vector data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | szName | Zero terminated string containing the label under which to add the image. |
[in] | pData | Pointer to the vector data to be added. |
[in] | numEntries | Number of floating point values pointed to by pData . |
HRESULT
(<0: error) cvbres_t SilAddRegressionImageItem | ( | TSIL | Sil, |
const float * | pLabel, | ||
size_t | labelSize, | ||
IMG | srcImage, | ||
cvbdim_t | nPosX, | ||
cvbdim_t | nPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | pLabel | Pointer to the floating point array to be used as the label for the data. |
[in] | labelSize | Number of floating point values pointed to by pLabel . |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nPosX | Position at which to extract the image data. |
[in] | nPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddRegressionImageItemEx | ( | TSIL | Sil, |
const float * | pLabel, | ||
size_t | labelSize, | ||
IMG | srcImage, | ||
cvbdim_t | nOriginPosX, | ||
cvbdim_t | nOriginPosY | ||
) |
Add a new image data entry to a SIL under a class name.
Provides a convenient way of adding a new image data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | pLabel | Pointer to the floating point array to be used as the label for the data. |
[in] | labelSize | Number of floating point values pointed to by pLabel . |
[in] | srcImage | Image object to extract the new image data from. |
[in] | nOriginPosX | Position at which to extract the image data. |
[in] | nOriginPosY | Position at which to extract the image data. |
HRESULT
(<0: error) cvbres_t SilAddRegressionVectorItem | ( | TSIL | Sil, |
const float * | pLabel, | ||
size_t | labelSize, | ||
const float * | pData, | ||
size_t | numEntries | ||
) |
Add a new vector data entry to a SIL under a class name.
Provides a convenient way of adding a new vector data entry to a classification SIL (i.e. a SIL that uses string labels).
[in] | Sil | Sample image list on which to operate. |
[in] | pLabel | Pointer to the floating point array to be used as the label for the data. |
[in] | labelSize | Number of floating point values pointed to by pLabel . |
[in] | pData | Pointer to the vector data to be added. |
[in] | numEntries | Number of floating point values pointed to by pData . |
HRESULT
(<0: error) cvbres_t SilChangeStringLabel | ( | TSIL | Sil, |
cvbval_t | LabelIndex, | ||
const char * | szString | ||
) |
Modify a string label's contents.
This effectively renames the existing class with the given LabelIndex
. If a class with the new label szString
already exists, the contents of the class LabelIndex
will be merged into that class.
[in] | Sil | sample image list on which to operate |
[in] | LabelIndex | label to be updated |
[in] | szString | new string to be set |
HRESULT
(<0: error) cvbres_t SilChangeStringLabelW | ( | TSIL | Sil, |
cvbval_t | LabelIndex, | ||
const wchar_t * | szString | ||
) |
Modify a string label's contents.
This effectively renames the existing class with the given LabelIndex
. If a class with the new label szString
already exists, the contents of the class LabelIndex
will be merged into that class.
[in] | Sil | sample image list on which to operate |
[in] | LabelIndex | label to be updated |
[in] | szString | new string to be set |
HRESULT
(<0: error) cvbres_t SilChangeVectorLabel | ( | TSIL | Sil, |
cvbval_t | LabelIndex, | ||
float * | pData, | ||
size_t | nDimension | ||
) |
Modify a vector label's contents.
This effectively relabels the existing class with the given LabelIndex
. If a class with the new label pData
already exists, the contents of the class LabelIndex
will be merged into that class.
[in] | Sil | sample image list on which to operate |
[in] | LabelIndex | label to be updated |
[in] | pData | vector data with which to update the label |
[in] | nDimension | length of the data pointed to by vector (in number of floating point values) |
HRESULT
(<0: error) TSIL SilCreate | ( | TSILLABELTYPE | LabelType, |
TSILDATATYPE | DataType | ||
) |
Creates a Sample Image List using the indicated label and data type.
Note that the general data and label type of a SIL cannot be changed after the SIL has been created.
[in] | LabelType | label type of the SIL |
[in] | DataType | data type of the SIL |
cvbres_t SilDeleteData | ( | TSIL | Sil, |
cvbval_t | Index | ||
) |
Remove an entry from a SIL's data list.
If the removed data entry was the last one to which a label referred, then that label will also be removed from the label list as a side effect! (the aim is to never have a class with zero entries in the SIL).
[in] | Sil | Sample image list on which to remove the entry. |
[in] | Index | Data list index of the entry to be removed. |
HRESULT
(< 0: error) cvbres_t SilDeleteDataByLabel | ( | TSIL | Sil, |
cvbval_t | LabelIndex, | ||
cvbval_t | DataIndex | ||
) |
Remove an entry from a SIL label's data list.
Note the difference between this function and SilDeleteData: The latter uses an index based on the SIL's "global" data entry list, whereas this function uses a label index to access a label's list of associated data entries.
If the removed data entry was the last one to which a label referred, then that label will also be removed from the label list as a side effect! (the aim is to never have a class with zero entries in the SIL).
[in] | Sil | Sample image list on which to remove the entry. |
[in] | LabelIndex | Label list index of the entry to be removed. |
[in] | DataIndex | Data list index of the entry to be removed. |
HRESULT
(< 0: error) cvbres_t SilDeleteLabel | ( | TSIL | Sil, |
cvbval_t | Index | ||
) |
Remove an entry from a TSIL's label list.
Removing a label entry will automatically also remove all associated data entries!
[in] | Sil | Sample image list on which to remove the entry. |
[in] | Index | Index of the label to be removed. |
HRESULT
(< 0: error) cvbres_t SilGetComment | ( | TSIL | Sil, |
char * | szComment, | ||
size_t & | CommentSize | ||
) |
Gets the comment string from a SIL.
[in] | Sil | Input Sample Image List object. |
[in] | szComment | Buffer to which the comment is to be copied . |
[in,out] | CommentSize | Size of the buffer upon function entry, number of copied characters upon function exit. If szComment buffer is too small, no characters will be copied and an error will be returned. In this case, CommentSize will receive the number of characters to be copied. |
cvbres_t SilGetCommentW | ( | TSIL | Sil, |
wchar_t * | szComment, | ||
size_t & | CommentSize | ||
) |
Gets the comment string from a SIL.
[in] | Sil | Input Sample Image List object. |
[in] | szComment | Buffer to which the comment is to be copied . |
[in,out] | CommentSize | Size of the buffer upon function entry, number of copied characters upon function exit. If szComment buffer is too small, no characters will be copied and an error will be returned. In this case, CommentSize will receive the number of characters to be copied. |
cvbres_t SilGetCreationDate | ( | TSIL | Sil, |
SYSTEMTIME & | Date | ||
) |
Get the system time at creation of the SIL.
[in] | Sil | List from which to get the information. |
[out] | Date | Creation date of the SIL. |
HRESULT
(< 0 = error) Get a SIL data list entry.
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Sil | Sil object handle. |
[in] | Index | Index of the data list entry to retrieve. |
handle
to the indexed data object or NULL on errors Get a SIL data list entry associated with a specific label.
Unlike SilGetData, which accesses the SIL's global data list (which in some cases makes index handling slightly inconvenient), this function accesses the data entries by class/label (i.e. it accesses the list of associated data in the label entry identified by LabelIndex
).
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Sil | Sil object handle. |
[in] | LabelIndex | Index of the label. |
[in] | DataIndex | Index of the data list entry in the label identified by the index LabelIndex . |
handle
to the indexed data object or NULL on errors Get the data list item of a label at the specified index.
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Label | Label handle on which to retrieve the data object. |
[in] | nIndex | Position at which to retrieve the data object. |
TSILDATATYPE SilGetDataType | ( | TSIL | Sil | ) |
Gets the data type descriptor object of a SIL.
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Sil | Input Sample Image List. |
Sil
handle is invalid, the data type descriptor object handle otherwise. TSilDataType SilGetDataTypeEnum | ( | TSIL | Sil | ) |
Gets the data type of the SIL object as an enumerated value.
This function has been added as a convenient alternative to the similar SilGetDataType call.
[in] | Sil | Input SIL object. |
Sil
did not refer to a valid SIL object). Get a SIL label list entry.
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Sil | Sil object handle. |
[in] | Index | Index of the label entry to retrieve. |
handle
to the indexed data object or NULL on errors Get the label for a data object.
[in] | Data | Data handle on which to retrieve the data object. |
[in] | nIndex | Position at which to retrieve the label object (currently only 0 is valid). |
TSILLABELTYPE SilGetLabelType | ( | TSIL | Sil | ) |
Gets the label type descriptor object of SIL.
Note that the reference count of the returned object will not be incremented by this function. If the caller plan's on using the handle over a longer period, it is recommendable to call ShareObject
on it.
[in] | Sil | Input Sample Image List |
Sil
handle is invalid, the label type descriptor object handle otherwise. TSilLabelType SilGetLabelTypeEnum | ( | TSIL | Sil | ) |
Gets the label type of the SIL object as an enumerated value.
This function has been added as a convenient alternative to the similar SilGetLabelType call.
[in] | Sil | Input SIL object. |
Sil
did not refer to a valid SIL object). Gets the mask data of the SIL.
[in] | Sil | SIL object handle. |
cvbres_t SilGetModificationDate | ( | TSIL | Sil, |
SYSTEMTIME & | Date | ||
) |
Get the system time at the last modification of the SIL.
[in] | Sil | List from which to get the information. |
[out] | Date | Modification date of the SIL. |
HRESULT
(< 0 = error) cvbval_t SilGetNumDataEntries | ( | TSIL | Sil | ) |
Gets the number entries in a SIL's data list.
[in] | Sil | Sample Image List to be queried. |
cvbval_t SilGetNumDataReferences | ( | TSILLABEL | Label | ) |
Retrieve the number of data entries associated with the input label.
[in] | Label | Label object handle. |
#
of associated data entries (-1 on errors) cvbval_t SilGetNumDataReferencesByLabel | ( | TSIL | Sil, |
cvbval_t | LabelIndex | ||
) |
Retrieve the number of data entries associated with a label.
[in] | Sil | SIL object handle. |
[in] | LabelIndex | Index of the label entry for which to query the number of reference. |
#
of associated data entries (-1 on errors) cvbval_t SilGetNumLabelEntries | ( | TSIL | Sil | ) |
Gets the number of label entries in a SIL's label list.
[in] | Sil | Sample Image List to be queried. |
cvbval_t SilGetNumLabelReferences | ( | TSILDATA | Data | ) |
Retrieve the number of labels associated with the input data.
Possible return values are in theory 0 or 1, however empty classes are not currently supported, so return value will always be zero.
[in] | Data | Data object handle. |
#
of associated data entries (-1 on errors) cvbres_t SilGetStatistics | ( | TSIL | Sil, |
size_t & | NumClasses, | ||
size_t & | MinSampleCount, | ||
size_t & | MaxSampleCount, | ||
double & | AverageSampleCount | ||
) |
Get the class statistics of a Sil.
[in] | Sil | Sample image list to work on. |
[out] | NumClasses | Total number of classes/labels in the SIL. |
[out] | MinSampleCount | Number of samples in the smallest class. |
[out] | MaxSampleCount | Number of samples in the biggest class. |
[out] | AverageSampleCount | Average number of samples per class/label. |
HRESULT
(< 0: error) cvbres_t SilImportFromManto | ( | const char * | szSil, |
TSIL & | sil | ||
) |
Import a Manto 1 SIL into Manto2.
With this function one can import SIL generated with the first version of Manto for use in Manto2. Please note, however, that there are a few restrictions involved, as Manto1 and Manto2 are not entirely feature compatible:
Upon import the version 1 SIL will be automatically converted to a version 2 SIL object that can be saved, reloaded, queried and manipulated using the functions from iSIL.h
.
[in] | szSil | File name of the sample image list to be imported. |
[out] | sil | Handle to the imported sample image list. |
cvbres_t SilImportFromMantoW | ( | const wchar_t * | szSil, |
TSIL & | sil | ||
) |
Import a Manto 1 SIL into Manto2.
With this function one can import SIL generated with the first version of Manto for use in Manto2. Please note, however, that there are a few restrictions involved, as Manto1 and Manto2 are not entirely feature compatible:
Upon import the version 1 SIL will be automatically converted to a version 2 SIL object that can be saved, reloaded, queried and manipulated using the functions from iSIL.h
.
[in] | szSil | File name of the sample image list to be imported. |
[out] | sil | Handle to the imported sample image list. |
cvbres_t SilLoad | ( | const char * | szFile, |
TSIL & | Sil | ||
) |
Load a SIL from disc.
[in] | szFile | File to load. |
[out] | Sil | Loaded SIL (if no error returned). |
cvbres_t SilLoadW | ( | const wchar_t * | szFile, |
TSIL & | Sil | ||
) |
Load a SIL from disc.
[in] | szFile | File to load. |
[out] | Sil | Loaded SIL (if no error returned). |
cvbres_t SilSetComment | ( | TSIL | Sil, |
const char * | szComment | ||
) |
Sets the comment string in the given SIL object.
[in] | Sil | Input Sample Image List object. |
[in] | szComment | Zero terminated comment string to be set. |
cvbres_t SilSetCommentW | ( | TSIL | Sil, |
const wchar_t * | szComment | ||
) |
Sets the comment string in the given SIL object.
[in] | Sil | Input Sample Image List object. |
[in] | szComment | Zero terminated comment string to be set. |
Sets the mask data of the SIL.
Note that in the previous implementation the mask had to match the size of the feature window and had only one plane. Now, the mask has to match the size of the images and be of identical dimension (making it possible to mask different locations for the different planes if necessary). The values in the mask image may be taken from the full range of what the pixel data types permit - they will be mapped to the range [0.0, ... 1.0] while processing the mask.
[in] | Sil | SIL object handle. |
[in] | MaskData | Mask data to be set. May be NULL , in which case only the current set of mask data will be erased, but not replaced with anything new. |
cvbres_t SilStore | ( | TSIL | Sil, |
const char * | szFile | ||
) |
Saves the SIL to disc.
[in] | szFile | File to store the SIL in. |
[in] | Sil | SIL object to be stored. |
cvbres_t SilStoreW | ( | TSIL | Sil, |
const wchar_t * | szFile | ||
) |
Saves the SIL to disc.
[in] | szFile | File to store the SIL in. |
[in] | Sil | SIL object to be stored. |
cvbres_t SilTransformDataList | ( | TSIL | SilIn, |
pfTransformSilData | Callback, | ||
void * | pPrivate, | ||
TSIL & | SilOut | ||
) |
Transform the data list of a SIL with a user-definable callback.
[in] | SilIn | SIL to be transformed. |
[in] | Callback | Transformation callback to be applied to all data entries in the SilIn . |
[in] | pPrivate | User data to be passed into the callback. |
[out] | SilOut | New SIL with transformed data. |
cvbres_t SilTransformLabelList | ( | TSIL | SilIn, |
pfTransformSilLabel | Callback, | ||
void * | pPrivate, | ||
TSIL & | SilOut | ||
) |
Transform the label list of a SIL with a user-definable callback.
[in] | SilIn | SIL to be transformed. |
[in] | Callback | Transformation callback to be applied to all labels. |
[in] | pPrivate | User data to be passed into the callback. |
[out] | SilOut | New SIL with transformed labels. |