ClassifierFactoryCreateLineSegment Method

CVB.Net Documentation
Create a ShapeFinder classifier for the recognition of a straight line of specific length and orientation.

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

public static Classifier CreateLineSegment(
	Angle orientation,
	int length,
	int contrastThreshold,
	GradientType gradientType
)

Parameters

orientation
Type: Stemmer.CvbAngle
angle of the line segment
length
Type: SystemInt32
length of the line segment in pixels (must be greater than 0)
contrastThreshold
Type: SystemInt32
minimum contrast of the line segment features (must be greater than 0)
gradientType
Type: Stemmer.Cvb.ShapeFinderGradientType

Return Value

Type: Classifier
A classifier representing the line segment defined by the input parameters.
Exceptions

ExceptionCondition
ArgumentExceptionif length is less than or equal to zero or if contrastThreshold is less than or equal to zero.
See Also

Reference