Class Difference

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

public class Difference extends VoxelScore
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(int[] voxelIntensities)
     
    int
    Index of first channel
    int
    Index of second channel
    int
    A minimum difference, below which 0.0 is returned
    double
    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

    • Difference

      public Difference()
  • Method Details

    • calculate

      public double calculate(int[] voxelIntensities) throws FeatureCalculationException
      Specified by:
      calculate in class VoxelScore
      Throws:
      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