Classifier Class

CVB.Net Documentation
ShapeFinder classifier object.
Inheritance Hierarchy

SystemObject
  Stemmer.Cvb.ShapeFinderClassifierObject
    Stemmer.Cvb.ShapeFinderClassifier

Namespace:  Stemmer.Cvb.ShapeFinder
Assembly:  Stemmer.Cvb.ShapeFinder (in Stemmer.Cvb.ShapeFinder.dll) Version: 14.0.0.0
Syntax

public class Classifier : ClassifierObject

The Classifier type exposes the following members.

Constructors

  NameDescription
Public methodClassifier(String)
Load a saved classifier from a file.
Public methodClassifier(Classifier)
Copy constructor for ShapeFinder classifiers
Top
Properties

  NameDescription
Public propertyAngularTolerance
Acceptance parameter for feature gradient angles. In ShapeFinder the angle of a feature is quantized into the range [0...255], i.e. in steps of roughly 1.41 degrees. When determining whether features extracted from an image match features stored in a classifier, the gradient's angle of the two features is compared not for strict equality, but for whether or not it falls into a certain range of differences. This acceptance window is defined by the Angular tolerance parameter. Valid values range from 0 (always match for identity only) to 16.
Public propertyComment
Comment assigned to the classifier.
(Inherited from ClassifierObject.)
Public propertyContrastThreshold
Threshold for the gradient slope.
Public propertyFeatureCount
Number of features this classifier contains.
Public propertyFeatureWindow
Feature window of this classifier (i.e. the bounding rectangle into which all the classifier's features fit) relative to the classifier's origin.
(Inherited from ClassifierObject.)
Public propertyFileName
Name of the file from which this classifier was loaded (string.Empty if this image list was neither loaded nor saved since its construction).
(Inherited from ClassifierObject.)
Public propertyGradientType
Gradient type this classifier uses for feature extraction.
(Inherited from ClassifierObject.)
Public propertyHandle
Native ShapeFinder2 classifier handle.
(Inherited from ClassifierObject.)
Public propertyIsDisposed
Tests if the native handle has already been disposed.
(Inherited from ClassifierObject.)
Public propertyNumLayers
Number of layers in the classifier (and in the accumulator generated by the search function). In ShapeFinder classifiers layers may be associated with specific classes or rotation information. In ShapeFinder2 the layer count is a purely informational value.
(Inherited from ClassifierObject.)
Top
Methods

  NameDescription
Public methodAppend
Append another classifier to this one. Appending means that the layers contained in clf will be appended to the layers of this classifier, so the layers (which may be considered models) of the two classifiers are left unchanged. Note that both classifiers involved must use the same gradient type.
Public methodDeleteFeatures
Delete features in a given window from this classifier.
Public methodDispose
IDisposable implementation.
(Inherited from ClassifierObject.)
Protected methodDispose(Boolean)
IDispose helper function.
(Inherited from ClassifierObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalizer
(Inherited from ClassifierObject.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVisualization
Create and return a color coded image representation of this ShapeFinder classifier. The colors in the output image correspond to the gradient directions, the positions to the displacement vectors. This visual representation might be useful during interactive supervision and debugging.
(Inherited from ClassifierObject.)
Public methodGetVisualization(Int32)
Create and return a color coded image representation of this ShapeFinder classifier. The colors in the output image correspond to the gradient directions, the positions to the displacement vectors. This visual representation might be useful during interactive supervision and debugging.
(Inherited from ClassifierObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReverseContrasts
Reverse the contrasts on this ShapeFinder classifier.
Public methodSave
Write the classifier to a file.
(Inherited from ClassifierObject.)
Public methodSearchAll
Search for all matches inside an image plane.
Public methodSearchBest
Search for the best pattern match in the plane
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform
Transform this ShapeFinder classifier using a 2x2 matrix.
(Inherited from ClassifierObject.)
Public methodTranslate
Translate this classifier by a selectable offset.
(Inherited from ClassifierObject.)
Public methodTruncateFeatures
Shorten the list of classifier features based on each feature's quality.
Top
Events

  NameDescription
Public eventObjectDisposing
Raised when this object is about to be disposed via the Dispose method.
(Inherited from ClassifierObject.)
Top
See Also

Reference