public class CalculateLevel extends CalculateLevelBase
Calculates a level score based on voxel intensity and a given threshold.
  • Constructor Details

    • CalculateLevel

      public CalculateLevel()
  • Method Details

    • beforeCalcSetup

      protected void beforeCalcSetup(Histogram histogram, int level)
      Description copied from class: CalculateLevelBase
      Performs setup operations before calculation.
      Specified by:
      beforeCalcSetup in class CalculateLevelBase
      Parameters:
      histogram - the Histogram to use for setup
      level - the calculated threshold level
    • calculateForVoxel

      protected double calculateForVoxel(int voxelIntensity, int level)
      Description copied from class: CalculateLevelBase
      Calculates a score for a single voxel based on its intensity and the threshold level.
      Specified by:
      calculateForVoxel in class CalculateLevelBase
      Parameters:
      voxelIntensity - the intensity of the voxel
      level - the threshold level
      Returns:
      a score for the voxel
    • getDistanceMax

      public double getDistanceMax()
      The maximum distance from the threshold level to consider.
    • setDistanceMax

      public void setDistanceMax(double distanceMax)
      The maximum distance from the threshold level to consider.