ShapeFinder2 OCX Reference 14.0
Methods

Functions

boolean Execute ()
 Executes the search task using the currently assigned property values. More...
 
boolean LoadClassifier (BSTR Filename)
 Loads the classifier from the given filename. More...
 
boolean LoadClassifierByDialog ()
 Loads the classifier using a standard file dialog. More...
 

Detailed Description

Function Documentation

◆ Execute()

boolean Execute ( )

Executes the search task using the currently assigned property values.

The function performs a validation of the property values in advance and fires the
#CVCError event in case of any error. The function might modify the image
coordinate system depending on the settings of the #AffectMatrix, #AffectOrigin and
#ResetCS properties.
Returns
TRUE if an object was found, FALSE if no object was found or an error occurred.
Related Topics:
#AffectMatrix Property, #AffectOrigin Property, #ResetCS Property
Supported platforms:
Win32
Examples:
Visual Basic - VB ShapeFinder2 OCX Example

◆ LoadClassifier()

boolean LoadClassifier ( BSTR  Filename)

Loads the classifier from the given filename.

Attention
If the classifier doesn't exists a #CVCError event is fired. If the function returns successfully the #CLF property will change as well as the #ClfName property. Note that you have to load a classifier that was generated using the ShapeFinder2 Teach application or with the CreateSF2 function of the ShapeFinder library.
Parameters
[in]FilenameFilename of the classifier to be loaded.
Returns
TRUE if succeeded, FALSE on failure.
Related Topics:
#LoadClassifierByDialog Method,
Supported platforms:
Win32
Examples:
Visual Basic - VB ShapeFinder2 OCX Example

◆ LoadClassifierByDialog()

boolean LoadClassifierByDialog ( )

Loads the classifier using a standard file dialog.

Attention
If the classifier doesn't exists a #CVCError event is fired. If the function returns successfully the #CLF property will change as well as the #ClfName property. Note that you have to load a classifier that was generated using the ShapeFinder2 Teach application or with the CreateSF2 function of the ShapeFinder library.
Returns
TRUE if succeeded, FALSE on failure.
Related Topics:
#LoadClassifier Method
Supported platforms:
Win32
Examples:
Visual Basic - VB ShapeFinder2 OCX Example