Find local maxima in the input image plane.
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 )
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.
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 |
See Also