public class Identity extends VoxelScore
A voxel score that can optionally normalize and adjust the intensity values.
  • Constructor Details

    • Identity

      public Identity()
  • 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
    • getEnergyChannelIndex

      public int getEnergyChannelIndex()
      The index of the energy channel to use for calculations.
    • setEnergyChannelIndex

      public void setEnergyChannelIndex(int energyChannelIndex)
      The index of the energy channel to use for calculations.
    • isNormalize

      public boolean isNormalize()
      Whether to normalize the voxel intensity values.
    • setNormalize

      public void setNormalize(boolean normalize)
      Whether to normalize the voxel intensity values.
    • getFactorLow

      public double getFactorLow()
      The factor to apply for values below 0.5 when normalizing.
    • setFactorLow

      public void setFactorLow(double factorLow)
      The factor to apply for values below 0.5 when normalizing.
    • getFactorHigh

      public double getFactorHigh()
      The factor to apply for values above 0.5 when normalizing.
    • setFactorHigh

      public void setFactorHigh(double factorHigh)
      The factor to apply for values above 0.5 when normalizing.
    • isKeepExtremes

      public boolean isKeepExtremes()
      Whether to keep extreme values (0 and 1) unchanged when normalizing.
    • setKeepExtremes

      public void setKeepExtremes(boolean keepExtremes)
      Whether to keep extreme values (0 and 1) unchanged when normalizing.