Functions | |
long | ClassIndexFromClassID (BSTR ClassID) |
This method returns the class index for the specified class ID. More... | |
boolean | Execute (void) |
Executes the search task that has been defined through the settings of the search parameter related properties (#Entire, #X0,#Y0, #X1, #Y1, #SearchTask, #Threshold, #ExcludedClassID, #UseVoting, #UseDotSensitivity, #Locality and #Image, potentially also #AdvanceX, #AdvanceY and #Radius). More... | |
boolean | LoadClassifier (BSTR FileName) |
Loads the classifier from the file with the name specified in the #FileName parameter. More... | |
boolean | LoadClassifierByDialog (void) |
Displays a standard file browsing dialog that allows a user to select a classifier file to be loaded. More... | |
long ClassIndexFromClassID | ( | BSTR | ClassID | ) |
This method returns the class index for the specified class ID.
Manto uses two approaches for referencing classes inside a classifier (classes and their IDs are defined during generation of the Sample Image List from which the classifier is subsequently generated). One is index-based (with the index ranging from 0 to #NumClasses - 1) and one is through the \ref ClassID "class IDs" (their user-defined literal names). The method #ClassIndexFromClassID provides a mapping from a class's ID to its index.
[in] | ClassID | Specified class ID. |
boolean Execute | ( | void | ) |
Executes the search task that has been defined through the settings of the search parameter related properties (#Entire, #X0,#Y0, #X1, #Y1, #SearchTask, #Threshold, #ExcludedClassID, #UseVoting, #UseDotSensitivity, #Locality and #Image, potentially also #AdvanceX, #AdvanceY and #Radius).
The number of found patterns is stored in the #ObjectCount property after the search has been successfully carried out. If no pattern was found, #ObjectCount is 0.
The function performs a validation of the property values in advance. If the search fails or the parameter set is inconsistent, #Execute returns FALSE
. Keep in mind that for a Manto search to succeed, the dimension of the classifier (see property #Dimension) and the dimension of the image must match, and also the Image must be big enough to hold at least one complete feature window of the Manto classifier (accessible through the properties #FeatureWindowWidth and #FeatureWindowHeight).
TRUE
if succeeded, FALSE
on failure. boolean LoadClassifier | ( | BSTR | FileName | ) |
Loads the classifier from the file with the name specified in the #FileName parameter.
CreateMCFromImageList
function of the Manto library before you can perform any searches or classifications with the Manto OCX. [in] | FileName | Path to the classifier file to be loaded. |
TRUE
if succeeded, FALSE
on failure. FALSE
. If the method returns successfully the #Classifier property will change as well as the #FileName property. boolean LoadClassifierByDialog | ( | void | ) |
Displays a standard file browsing dialog that allows a user to select a classifier file to be loaded.
If the method returns successfully the #Classifier property will change as well as the #FileName property.
CreateMCFromImageList
function of the Manto library before you can perform any searches or classifications with the Manto OCX. TRUE
if succeeded, FALSE
on failure. FALSE
.