Class CalculateLevelUnary

Direct Known Subclasses:
CalculateLevelRelativeToThreshold, ClampHistogramMax, EmptyHistogramConstant

public abstract class CalculateLevelUnary extends CalculateLevel
Implementation of CalculateLevel that calls a single delegate CalculateLevel.
Author:
Owen Feehan
  • Constructor Details

    • CalculateLevelUnary

      protected CalculateLevelUnary()
  • Method Details

    • calculateLevelFromDelegate

      protected int calculateLevelFromDelegate(Histogram histogram) throws OperationFailedException
      Determines a voxel intensity that can be used for thresholding from the delegate 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
    • getCalculateLevel

      public CalculateLevel getCalculateLevel()
      The delegate CalculateLevel.
    • setCalculateLevel

      public void setCalculateLevel(CalculateLevel calculateLevel)
      The delegate CalculateLevel.