Class OutsideRange

Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore, ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
OutsideRange

public class OutsideRange extends VoxelScore
Calculates a voxel score based on whether the voxel intensity is outside a specified range.

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 use for intensity values.
    int
    The maximum value of the range (exclusive).
    int
    The minimum value of the range (inclusive).
    void
    setEnergyIndex(int energyIndex)
    The index of the energy channel to use for intensity values.
    void
    setMax(int max)
    The maximum value of the range (exclusive).
    void
    setMin(int min)
    The minimum value of the range (inclusive).

    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

    • OutsideRange

      public OutsideRange()
  • Method Details

    • calculate

      public double calculate(int[] voxelIntensities) throws FeatureCalculationException
      Specified by:
      calculate in class VoxelScore
      Throws:
      FeatureCalculationException
    • getMin

      public int getMin()
      The minimum value of the range (inclusive).
    • setMin

      public void setMin(int min)
      The minimum value of the range (inclusive).
    • getMax

      public int getMax()
      The maximum value of the range (exclusive).
    • setMax

      public void setMax(int max)
      The maximum value of the range (exclusive).
    • getEnergyIndex

      public int getEnergyIndex()
      The index of the energy channel to use for intensity values.
    • setEnergyIndex

      public void setEnergyIndex(int energyIndex)
      The index of the energy channel to use for intensity values.