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: Int32the calculated histogram
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the Parent of 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