Class HistogramThresholder
Object
HistogramThresholder
Utility class for thresholding histograms.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Histogram
withCalculateLevel
(Histogram histogram, CalculateLevel calculateLevel) Retains the portion of the histogram greater or equal to the calculated-level.
-
Method Details
-
withCalculateLevel
public static Histogram withCalculateLevel(Histogram histogram, CalculateLevel calculateLevel) throws OperationFailedException Retains the portion of the histogram greater or equal to the calculated-level.- Parameters:
histogram
- theHistogram
to thresholdcalculateLevel
- theCalculateLevel
to determine the threshold- Returns:
- the thresholded
Histogram
- Throws:
OperationFailedException
- if the threshold calculation fails
-