Class RejectIfIntensityLessThan


public class RejectIfIntensityLessThan extends VoxelScore
Rejects voxels with intensity less than a specified minimum, otherwise calculates a score using another VoxelScore.

This class extends VoxelScore to provide a specific scoring mechanism for voxels.

  • Constructor Details

    • RejectIfIntensityLessThan

      public RejectIfIntensityLessThan()
  • 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
    • getItem

      public VoxelScore getItem()
      The VoxelScore to use for calculating the score if the intensity is not rejected.
    • setItem

      public void setItem(VoxelScore item)
      The VoxelScore to use for calculating the score if the intensity is not rejected.
    • getEnergyChannelIndex

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

      public void setEnergyChannelIndex(int energyChannelIndex)
      The index of the energy channel to check for intensity.
    • getMinIntensity

      public int getMinIntensity()
      The minimum intensity threshold. Voxels with intensity less than this are rejected (scored as 0).
    • setMinIntensity

      public void setMinIntensity(int minIntensity)
      The minimum intensity threshold. Voxels with intensity less than this are rejected (scored as 0).