public class Constant extends CalculateLevel
A constant value for thresholding.
Author:
Owen Feehan
  • Constructor Details

    • Constant

      public Constant()
    • Constant

      public Constant(int level)
  • Method Details

    • calculateLevel

      public int calculateLevel(Histogram histogram)
      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.
    • 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
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)