Find sub pixel accurate local maxima in the input image
plane. Sub pixel accuracy is achieved by assuming
a Gaussian or parabolic gray value distribution around a local maximum
that can be fitted into the image data.
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public static LocalMaximum[] FindLocalMaxima( this ImagePlane plane, int locality, double threshold, Rect aoi, SubPixelMode mode, Neighborhood radius )
Parameters
- plane
- Type: Stemmer.CvbImagePlane
Image plane in which to look for maxima - locality
- Type: SystemInt32
Minimum distance between two valid maxima; if two maxima fall within this distance (measured using the L1 norm), the one with the lower gray value will be removed from the result list - threshold
- Type: SystemDouble
Minimum gray value a local maximum must have for being reported. Note that the minimal possible value for the image's pixel type is never eligible to be a local maximum (e.g. if the image uses 8 bits per pixel unsigned, pixels with value 0 will never be a local maximum even if the threshold has been set to 0. - aoi
- Type: Stemmer.CvbRect
Region of interest in which to look for maxima - mode
- Type: Stemmer.CvbSubPixelMode
Mode to be used for determining sub pixel accuracy (see description of SubPixelMode values) - radius
- Type: Stemmer.CvbNeighborhood
Neighborhood to take account in the sub pixel calculation (see description of Neighborhood values)
Return Value
Type: LocalMaximumList of the local maxima that have been found
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ImagePlane. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | If the plane to work on has already been disposed |
InvalidOperationException | when trying to combine ParabolicFast with a neighborhood other than Use3x3 |
See Also