Class CalculateLevel
Calculates a level score based on voxel intensity and a given threshold.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeCalcSetup(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.doubleThe maximum distance from the threshold level to consider.voidsetDistanceMax(double distanceMax) The maximum distance from the threshold level to consider.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, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
CalculateLevel
public CalculateLevel()
-
-
Method Details
-
beforeCalcSetup
Description copied from class:CalculateLevelBasePerforms setup operations before calculation.- Specified by:
beforeCalcSetupin classCalculateLevelBase- Parameters:
histogram- theHistogramto use for setuplevel- the calculated threshold level
-
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
-
getDistanceMax
public double getDistanceMax()The maximum distance from the threshold level to consider. -
setDistanceMax
public void setDistanceMax(double distanceMax) The maximum distance from the threshold level to consider.
-