Class SingleChannel

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.SingleChannel
Direct Known Subclasses:
CalculateLevelBase, FromDictionaryBase, NormalizeByConstant, NormalizeByMax

public abstract class SingleChannel
extends org.anchoranalysis.image.feature.bean.VoxelScore
A score that is calculated on a single channel only.

This abstract class extends VoxelScore to provide a base for voxel scores that operate on a single energy channel.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    SingleChannel()  
  • Method Summary

    Modifier and Type Method Description
    double calculate​(int[] voxelIntensities)  
    protected abstract double deriveScoreFromVoxel​(int voxelIntensity)
    Derives a score from a single voxel intensity.
    int getEnergyChannelIndex()
    The index of the energy channel to use for score calculation.
    void setEnergyChannelIndex​(int energyChannelIndex)
    The index of the energy channel to use for score calculation.

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

      protected abstract double deriveScoreFromVoxel​(int voxelIntensity)
      Derives a score from a single voxel intensity.
      Parameters:
      voxelIntensity - the intensity of the voxel in the specified energy channel
      Returns:
      the calculated score for the voxel
    • getEnergyChannelIndex

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

      public void setEnergyChannelIndex​(int energyChannelIndex)
      The index of the energy channel to use for score calculation.