Find peaks in the histogram identified by the supplied criteria.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static int[] FindPeaks( this IList<long> histogram, int blurSize, int minDiff )
Parameters
- histogram
- Type: System.Collections.GenericIListInt64
Histogram to analyze. - blurSize
- Type: SystemInt32
Averaging window size (must be >= 1). - minDiff
- Type: SystemInt32
Minimum grey value difference between two peaks.
Return Value
Type: Int32Peak positions in the histogram.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IListInt64. 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 |
---|---|
ArgumentNullException | If histogram is null. |
ArgumentOutOfRangeException | If blurSize or minDiff are out of rang.e |
See Also