Create a ShapeFinder2 classifier from the input image
plane. If the input plane has
overlay information, then this overlay information will be extracted
and used as don't care points.
Namespace: Stemmer.Cvb.ShapeFinder2
Assembly: Stemmer.Cvb.ShapeFinder (in Stemmer.Cvb.ShapeFinder.dll) Version: 14.0.0.0
Syntax
public Classifier Learn( ImagePlane plane, Point2D position, Angle angleOffset, double scaleFactor, Rect teachWindow )
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 - angleOffset
- Type: Stemmer.CvbAngle
initial rotation of the object; this angle will be added to the measured angle of the found object(s) at the end of the search function - scaleFactor
- Type: SystemDouble
initial scale factor of the object; this scale factor will be multiplied with the measured scale factor of the found object(s) at the end of the search function - teachWindow
- Type: Stemmer.CvbRect
teach window for the classifier learning process relative to position
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 |
See Also