Class HistogramThresholder

Object
HistogramThresholder

public class HistogramThresholder extends Object
Utility class for thresholding histograms.
  • 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 - the Histogram to threshold
      calculateLevel - the CalculateLevel to determine the threshold
      Returns:
      the thresholded Histogram
      Throws:
      OperationFailedException - if the threshold calculation fails