Class RejectIfIntensityLessThan

Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore, ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(int[] voxelIntensities)
     
    int
    The index of the energy channel to check for intensity.
    VoxelScore
    The VoxelScore to use for calculating the score if the intensity is not rejected.
    int
    The minimum intensity threshold.
    void
    setEnergyChannelIndex(int energyChannelIndex)
    The index of the energy channel to check for intensity.
    void
    setItem(VoxelScore item)
    The VoxelScore to use for calculating the score if the intensity is not rejected.
    void
    setMinIntensity(int minIntensity)
    The minimum intensity threshold.

    Methods inherited from class org.anchoranalysis.image.feature.bean.VoxelScore

    initialize

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RejectIfIntensityLessThan

      public RejectIfIntensityLessThan()
  • Method Details

    • calculate

      public double calculate(int[] voxelIntensities) throws FeatureCalculationException
      Specified by:
      calculate in class VoxelScore
      Throws:
      FeatureCalculationException
    • 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).