Class DifferenceCalculateLevelStandardDeviation
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.SingleChannel
org.anchoranalysis.plugin.image.feature.bean.score.CalculateLevelBase
org.anchoranalysis.plugin.image.feature.bean.score.DifferenceCalculateLevelStandardDeviation
public class DifferenceCalculateLevelStandardDeviation extends CalculateLevelBase
Similar to
Difference but calculates the width as the standard-deviation of the histogram- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DifferenceCalculateLevelStandardDeviation() -
Method Summary
Modifier and Type Method Description protected voidbeforeCalcSetup(org.anchoranalysis.math.histogram.Histogram histogram, int level)Performs setup operations before calculation.protected doublecalculateForVoxel(int voxelIntensity, int level)Calculates a score for a single voxel based on its intensity and the threshold level.intgetMinDifference()doublegetWidthFactor()voidsetMinDifference(int minDifference)voidsetWidthFactor(double widthFactor)Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.score.CalculateLevelBase
deriveScoreFromVoxel, getCalculateLevel, getHistogramChannelIndex, initialize, setCalculateLevel, setHistogramChannelIndexMethods inherited from class org.anchoranalysis.plugin.image.feature.bean.score.SingleChannel
calculate, getEnergyChannelIndex, setEnergyChannelIndexMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
DifferenceCalculateLevelStandardDeviation
public DifferenceCalculateLevelStandardDeviation()
-
-
Method Details
-
beforeCalcSetup
protected void beforeCalcSetup(org.anchoranalysis.math.histogram.Histogram histogram, int level) throws org.anchoranalysis.core.exception.OperationFailedExceptionDescription copied from class:CalculateLevelBasePerforms setup operations before calculation.- Specified by:
beforeCalcSetupin classCalculateLevelBase- Parameters:
histogram- theHistogramto use for setuplevel- the calculated threshold level- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the setup operation fails
-
calculateForVoxel
protected double calculateForVoxel(int voxelIntensity, int level)Description copied from class:CalculateLevelBaseCalculates a score for a single voxel based on its intensity and the threshold level.- Specified by:
calculateForVoxelin 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)
-