Class Difference
Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore, ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
Difference
public class Difference
extends VoxelScore
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(int[] voxelIntensities) intIndex of first channelintIndex of second channelintA 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.image.feature.bean.VoxelScore
initializeMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Difference
public Difference()
-
-
Method Details
-
calculate
public double calculate(int[] voxelIntensities) throws FeatureCalculationException - Specified by:
calculatein classVoxelScore- 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
-