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 doublecalculate(int[] voxelIntensities)intgetChannelFirst()Index of first channelintgetChannelSecond()Index of second channelintgetMinDifference()A minimum difference, below which 0.0 is returneddoublegetWidth()Width (what the difference is divided by)voidsetChannelFirst(int channelFirst)Index of first channelvoidsetChannelSecond(int channelSecond)Index of second channelvoidsetMinDifference(int minDifference)A minimum difference, below which 0.0 is returnedvoidsetWidth(double width)Width (what the difference is divided by)Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
Difference
public Difference()
-
-
Method Details
-
calculate
public double calculate(int[] voxelIntensities) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
calculatein classorg.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
-