Direct Known Subclasses:
CalculateLevelBase, FromDictionaryBase, NormalizeByConstant, NormalizeByMax

public abstract class SingleChannel extends VoxelScore
A score that is calculated on a single channel only.

This abstract class extends VoxelScore to provide a base for voxel scores that operate on a single energy channel.

Author:
Owen Feehan
  • Constructor Details

    • SingleChannel

      public SingleChannel()
  • 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
    • deriveScoreFromVoxel

      protected abstract double deriveScoreFromVoxel(int voxelIntensity)
      Derives a score from a single voxel intensity.
      Parameters:
      voxelIntensity - the intensity of the voxel in the specified energy channel
      Returns:
      the calculated score for the voxel
    • getEnergyChannelIndex

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

      public void setEnergyChannelIndex(int energyChannelIndex)
      The index of the energy channel to use for score calculation.