ClassifierFactoryGradientHistogram Method

CVB.Net Documentation
Calculate the gradient histogram over the aoi in an image plane. The gradient histogram may be useful to determine a suitable contrast threshold value for classifier generation and search operations.

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

public static int[] GradientHistogram(
	ImagePlane plane,
	Rect aoi,
	GradientType gradient
)

Parameters

plane
Type: Stemmer.CvbImagePlane
image plane in which to claculate the histogram
aoi
Type: Stemmer.CvbRect
area of interest in which to calculate the histogram
gradient
Type: Stemmer.Cvb.ShapeFinderGradientType
gradient operator to use for the calculating the histogram

Return Value

Type: Int32
the calculated histogram
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the Parent of 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
See Also

Reference