Class DifferenceCalculateLevelStandardDeviation
Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore,ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
SingleChannel
CalculateLevelBase
DifferenceCalculateLevelStandardDeviation
Similar to
Difference
but calculates the width as the standard-deviation of the histogram- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeCalcSetup
(Histogram histogram, int level) Performs setup operations before calculation.protected double
calculateForVoxel
(int voxelIntensity, int level) Calculates a score for a single voxel based on its intensity and the threshold level.int
double
void
setMinDifference
(int minDifference) void
setWidthFactor
(double widthFactor) Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.score.CalculateLevelBase
deriveScoreFromVoxel, getCalculateLevel, getHistogramChannelIndex, initialize, setCalculateLevel, setHistogramChannelIndex
Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.score.SingleChannel
calculate, getEnergyChannelIndex, setEnergyChannelIndex
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
-
Constructor Details
-
DifferenceCalculateLevelStandardDeviation
public DifferenceCalculateLevelStandardDeviation()
-
-
Method Details
-
beforeCalcSetup
Description copied from class:CalculateLevelBase
Performs setup operations before calculation.- Specified by:
beforeCalcSetup
in classCalculateLevelBase
- Parameters:
histogram
- theHistogram
to use for setuplevel
- the calculated threshold level- Throws:
OperationFailedException
- if the setup operation fails
-
calculateForVoxel
protected double calculateForVoxel(int voxelIntensity, int level) Description copied from class:CalculateLevelBase
Calculates a score for a single voxel based on its intensity and the threshold level.- Specified by:
calculateForVoxel
in classCalculateLevelBase
- Parameters:
voxelIntensity
- the intensity of the voxellevel
- the threshold level- Returns:
- a score for the voxel
-
getMinDifference
public int getMinDifference() -
setMinDifference
public void setMinDifference(int minDifference) -
getWidthFactor
public double getWidthFactor() -
setWidthFactor
public void setWidthFactor(double widthFactor)
-