Class Identity

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

public class Identity extends VoxelScore
A voxel score that can optionally normalize and adjust the intensity values.
  • 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 calculations.
    double
    The factor to apply for values above 0.5 when normalizing.
    double
    The factor to apply for values below 0.5 when normalizing.
    boolean
    Whether to keep extreme values (0 and 1) unchanged when normalizing.
    boolean
    Whether to normalize the voxel intensity values.
    void
    setEnergyChannelIndex(int energyChannelIndex)
    The index of the energy channel to use for calculations.
    void
    setFactorHigh(double factorHigh)
    The factor to apply for values above 0.5 when normalizing.
    void
    setFactorLow(double factorLow)
    The factor to apply for values below 0.5 when normalizing.
    void
    setKeepExtremes(boolean keepExtremes)
    Whether to keep extreme values (0 and 1) unchanged when normalizing.
    void
    setNormalize(boolean normalize)
    Whether to normalize the voxel intensity values.

    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

    • Identity

      public Identity()
  • Method Details

    • calculate

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

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

      public void setEnergyChannelIndex(int energyChannelIndex)
      The index of the energy channel to use for calculations.
    • isNormalize

      public boolean isNormalize()
      Whether to normalize the voxel intensity values.
    • setNormalize

      public void setNormalize(boolean normalize)
      Whether to normalize the voxel intensity values.
    • getFactorLow

      public double getFactorLow()
      The factor to apply for values below 0.5 when normalizing.
    • setFactorLow

      public void setFactorLow(double factorLow)
      The factor to apply for values below 0.5 when normalizing.
    • getFactorHigh

      public double getFactorHigh()
      The factor to apply for values above 0.5 when normalizing.
    • setFactorHigh

      public void setFactorHigh(double factorHigh)
      The factor to apply for values above 0.5 when normalizing.
    • isKeepExtremes

      public boolean isKeepExtremes()
      Whether to keep extreme values (0 and 1) unchanged when normalizing.
    • setKeepExtremes

      public void setKeepExtremes(boolean keepExtremes)
      Whether to keep extreme values (0 and 1) unchanged when normalizing.