Class IdentityImposeValueRelationToHistogram

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

public class IdentityImposeValueRelationToHistogram
extends org.anchoranalysis.image.feature.bean.VoxelScore
A voxel score that imposes a value relation to a histogram.
  • Constructor Summary

    Constructors 
    Constructor Description
    IdentityImposeValueRelationToHistogram()  
  • Method Summary

    Modifier and Type Method Description
    double calculate​(int[] voxelIntensities)  
    int getEnergyChannelIndexCheck()
    The index of the energy channel to check.
    int getEnergyChannelIndexFail()
    The index of the energy channel to use if the relation check fails.
    int getHistogramIndex()
    The index of the histogram to use for comparison.
    org.anchoranalysis.bean.shared.relation.RelationBean getRelation()
    The relation to test between the voxel value and the histogram value.
    double getValue()
    The value to return if the relation test passes.
    void initialize​(List<org.anchoranalysis.math.histogram.Histogram> histograms, Optional<org.anchoranalysis.core.value.Dictionary> dictionary)  
    boolean isMax()
    Whether to use the maximum (true) or minimum (false) value from the histogram.
    void setEnergyChannelIndexCheck​(int energyChannelIndexCheck)
    The index of the energy channel to check.
    void setEnergyChannelIndexFail​(int energyChannelIndexFail)
    The index of the energy channel to use if the relation check fails.
    void setHistogramIndex​(int histogramIndex)
    The index of the histogram to use for comparison.
    void setMax​(boolean max)
    Whether to use the maximum (true) or minimum (false) value from the histogram.
    void setRelation​(org.anchoranalysis.bean.shared.relation.RelationBean relation)
    The relation to test between the voxel value and the histogram value.
    void setValue​(double value)
    The value to return if the relation test passes.

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

      public void initialize​(List<org.anchoranalysis.math.histogram.Histogram> histograms, Optional<org.anchoranalysis.core.value.Dictionary> dictionary) throws org.anchoranalysis.core.exception.InitializeException
      Overrides:
      initialize in class org.anchoranalysis.image.feature.bean.VoxelScore
      Throws:
      org.anchoranalysis.core.exception.InitializeException
    • getEnergyChannelIndexCheck

      public int getEnergyChannelIndexCheck()
      The index of the energy channel to check.
    • setEnergyChannelIndexCheck

      public void setEnergyChannelIndexCheck​(int energyChannelIndexCheck)
      The index of the energy channel to check.
    • getEnergyChannelIndexFail

      public int getEnergyChannelIndexFail()
      The index of the energy channel to use if the relation check fails.
    • setEnergyChannelIndexFail

      public void setEnergyChannelIndexFail​(int energyChannelIndexFail)
      The index of the energy channel to use if the relation check fails.
    • getHistogramIndex

      public int getHistogramIndex()
      The index of the histogram to use for comparison.
    • setHistogramIndex

      public void setHistogramIndex​(int histogramIndex)
      The index of the histogram to use for comparison.
    • getRelation

      public org.anchoranalysis.bean.shared.relation.RelationBean getRelation()
      The relation to test between the voxel value and the histogram value.
    • setRelation

      public void setRelation​(org.anchoranalysis.bean.shared.relation.RelationBean relation)
      The relation to test between the voxel value and the histogram value.
    • getValue

      public double getValue()
      The value to return if the relation test passes.
    • setValue

      public void setValue​(double value)
      The value to return if the relation test passes.
    • isMax

      public boolean isMax()
      Whether to use the maximum (true) or minimum (false) value from the histogram.
    • setMax

      public void setMax​(boolean max)
      Whether to use the maximum (true) or minimum (false) value from the histogram.