ClassifierFactoryLearn Method

CVB.Net Documentation
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: Classifier
the newly created classifier
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the Parent of the plane parameter is null
ObjectDisposedExceptionIf the Parent of plane has already been disposed
CvbExceptionwhen 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
ArgumentExceptionIf the position lies outside the image plane, the teachWindow lies outside the image plane or the contrastThreshold is less than 1
See Also

Reference