Class Difference

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

public class Difference
extends org.anchoranalysis.image.feature.bean.VoxelScore
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    Difference()  
  • Method Summary

    Modifier and Type Method Description
    double calculate​(int[] voxelIntensities)  
    int getChannelFirst()
    Index of first channel
    int getChannelSecond()
    Index of second channel
    int getMinDifference()
    A minimum difference, below which 0.0 is returned
    double getWidth()
    Width (what the difference is divided by)
    void setChannelFirst​(int channelFirst)
    Index of first channel
    void setChannelSecond​(int channelSecond)
    Index of second channel
    void setMinDifference​(int minDifference)
    A minimum difference, below which 0.0 is returned
    void setWidth​(double width)
    Width (what the difference is divided by)

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

      public int getChannelFirst()
      Index of first channel
    • setChannelFirst

      public void setChannelFirst​(int channelFirst)
      Index of first channel
    • getChannelSecond

      public int getChannelSecond()
      Index of second channel
    • setChannelSecond

      public void setChannelSecond​(int channelSecond)
      Index of second channel
    • getWidth

      public double getWidth()
      Width (what the difference is divided by)
    • setWidth

      public void setWidth​(double width)
      Width (what the difference is divided by)
    • getMinDifference

      public int getMinDifference()
      A minimum difference, below which 0.0 is returned
    • setMinDifference

      public void setMinDifference​(int minDifference)
      A minimum difference, below which 0.0 is returned