Class Identity

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.Identity

public class Identity
extends org.anchoranalysis.image.feature.bean.VoxelScore
A voxel score that can optionally normalize and adjust the intensity values.
  • Constructor Summary

    Constructors 
    Constructor Description
    Identity()  
  • Method Summary

    Modifier and Type Method Description
    double calculate​(int[] voxelIntensities)  
    int getEnergyChannelIndex()
    The index of the energy channel to use for calculations.
    double getFactorHigh()
    The factor to apply for values above 0.5 when normalizing.
    double getFactorLow()
    The factor to apply for values below 0.5 when normalizing.
    boolean isKeepExtremes()
    Whether to keep extreme values (0 and 1) unchanged when normalizing.
    boolean isNormalize()
    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

  • 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
    • 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.