Create a ShapeFinder classifier from the input image
plane.
Namespace: Stemmer.Cvb.ShapeFinder
Assembly: Stemmer.Cvb.ShapeFinder (in Stemmer.Cvb.ShapeFinder.dll) Version: 14.0.0.0
Syntax
public static Classifier Learn( ImagePlane plane, Point2D position, Rect teachWindow, int contrastThreshold, GradientType gradientType )
Parameters
- plane
- Type: Stemmer.CvbImagePlane
image plane to create the classifier from - position
- Type: Stemmer.CvbPoint2D
position in the input image at which to extract the classifier - teachWindow
- Type: Stemmer.CvbRect
teach window for the classifier learning process relative to position - contrastThreshold
- Type: SystemInt32
minimum contrast a feature must have for entering the model - gradientType
- Type: Stemmer.Cvb.ShapeFinderGradientType
gradient operator to use for calculating the model
Return Value
Type: Classifierthe newly created classifier
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the Parent of the plane parameter is null |
ObjectDisposedException | If the Parent of plane has already been disposed |
CvbException | when trying to learn a classifier from an image plane that does not have the data type 8 bits per pixel unsigned, or if an unspecific error occurs |
ArgumentException | If the position lies outside the image plane, the teachWindow lies outside the image plane or the contrastThreshold is less than 1 |
See Also