extends the long[] class by methods that help analyze a histogram. More...
Static Public Member Functions | |
static int[] | FindPeaks (this IList< int > histogram, int blurSize, int minDiff) |
Find peaks in the histogram identified by the supplied criteria. More... | |
static int[] | FindPeaks (this IList< long > histogram, int blurSize, int minDiff) |
Find peaks in the histogram identified by the supplied criteria. More... | |
static double[] | Filter (this IList< int > histogram, double[] kernel) |
Filter a histogram array with the given kernel . At the beginning and end of the histogram, the histogram uses constant extension More... | |
static double[] | Filter (this IList< long > histogram, double[] kernel) |
Filter a histogram array with the given kernel . At the beginning and end of the histogram, the histogram uses constant extension More... | |
static double[] | Filter (this IList< double > histogram, double[] kernel) |
Filter a histogram array with the given kernel . At the beginning and end of the histogram, the histogram uses constant extension More... | |
static int | SumBetween (this IList< int > histogram, int lowerLimit, int upperLimit) |
Count the number of pixels that lie between two limits in the histogram. More... | |
static long | SumBetween (this IList< long > histogram, int lowerLimit, int upperLimit) |
Count the number of pixels that lie between two limits in the histogram. More... | |
extends the long[] class by methods that help analyze a histogram.
|
static |
|
static |
|
static |
|
static |
Find peaks in the histogram identified by the supplied criteria.
histogram | Histogram to analyze. |
blurSize | Averaging window size (must be >= 1). |
minDiff | Minimum grey value difference between two peaks. |
ArgumentNullException | If histogram is null . |
ArgumentOutOfRangeException | If blurSize or minDiff are out of rang.e |
|
static |
Find peaks in the histogram identified by the supplied criteria.
histogram | Histogram to analyze. |
blurSize | Averaging window size (must be >= 1). |
minDiff | Minimum grey value difference between two peaks. |
ArgumentNullException | If histogram is null . |
ArgumentOutOfRangeException | If blurSize or minDiff are out of rang.e |
|
static |
Count the number of pixels that lie between two limits in the histogram.
histogram | The histogram to calculate the sum on. |
lowerLimit | Lower limit to count from. |
upperLimit | Upper limit to count to (including). |
ArgumentOutOfRangeException | If lowerLimit is smaller than zero or upperLimit is larger or equal to the number of entries in the Histogram. |
|
static |
Count the number of pixels that lie between two limits in the histogram.
histogram | The histogram to calculate the sum on. |
lowerLimit | Lower limit to count from. |
upperLimit | Upper limit to count to (including). |
ArgumentOutOfRangeException | If lowerLimit is smaller than zero or upperLimit is larger or equal to the number of entries in the Histogram. |