public class Quantile extends CalculateLevel
Calculates the threshold value from a quantile of a histogram.

By default, it calculates the median i.e. quantile of 0.5

Author:
Owen Feehan
  • Constructor Details

    • Quantile

      public Quantile()
  • Method Details

    • calculateLevel

      public int calculateLevel(Histogram histogram) throws OperationFailedException
      Description copied from class: CalculateLevel
      Determines a voxel intensity that can be used for thresholding.
      Specified by:
      calculateLevel in class CalculateLevel
      Parameters:
      histogram - a histogram of voxel-intensities from which a threshold-level can be derived.
      Returns:
      the threshold-level.
      Throws:
      OperationFailedException - if a level cannot be successfully calculated.
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class CalculateLevel
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class CalculateLevel
    • getQuantile

      public double getQuantile()
    • setQuantile

      public void setQuantile(double quantile)
    • isAddOne

      public boolean isAddOne()
    • setAddOne

      public void setAddOne(boolean addOne)