Class RejectIfIntensityLessThan

Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,​org.anchoranalysis.image.bean.nonbean.init.ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<org.anchoranalysis.image.feature.bean.VoxelScore>
org.anchoranalysis.image.feature.bean.VoxelScore
org.anchoranalysis.plugin.image.feature.bean.score.RejectIfIntensityLessThan

public class RejectIfIntensityLessThan
extends org.anchoranalysis.image.feature.bean.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
    RejectIfIntensityLessThan()  
  • Method Summary

    Modifier and Type Method Description
    double calculate​(int[] voxelIntensities)  
    int getEnergyChannelIndex()
    The index of the energy channel to check for intensity.
    org.anchoranalysis.image.feature.bean.VoxelScore getItem()
    The VoxelScore to use for calculating the score if the intensity is not rejected.
    int getMinIntensity()
    The minimum intensity threshold.
    void setEnergyChannelIndex​(int energyChannelIndex)
    The index of the energy channel to check for intensity.
    void setItem​(org.anchoranalysis.image.feature.bean.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

  • Method Details

    • calculate

      public double calculate​(int[] voxelIntensities) throws org.anchoranalysis.feature.calculate.FeatureCalculationException
      Specified by:
      calculate in class org.anchoranalysis.image.feature.bean.VoxelScore
      Throws:
      org.anchoranalysis.feature.calculate.FeatureCalculationException
    • getItem

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

      public void setItem​(org.anchoranalysis.image.feature.bean.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).