public class Difference extends VoxelScore
Author:
Owen Feehan
  • Constructor Details

    • Difference

      public Difference()
  • Method Details

    • calculate

      public double calculate(int[] voxelIntensities) throws FeatureCalculationException
      Description copied from class: VoxelScore
      Calculates a score for a set of voxel intensities.
      Specified by:
      calculate in class VoxelScore
      Parameters:
      voxelIntensities - an array of voxel intensity values
      Returns:
      the calculated score for the given voxel intensities
      Throws:
      FeatureCalculationException - if the calculation fails
    • getChannelFirst

      public int getChannelFirst()
      Index of first channel
    • setChannelFirst

      public void setChannelFirst(int channelFirst)
      Index of first channel
    • getChannelSecond

      public int getChannelSecond()
      Index of second channel
    • setChannelSecond

      public void setChannelSecond(int channelSecond)
      Index of second channel
    • getWidth

      public double getWidth()
      Width (what the difference is divided by)
    • setWidth

      public void setWidth(double width)
      Width (what the difference is divided by)
    • getMinDifference

      public int getMinDifference()
      A minimum difference, below which 0.0 is returned
    • setMinDifference

      public void setMinDifference(int minDifference)
      A minimum difference, below which 0.0 is returned