Class CalculateLevelUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,NullInitialization>
org.anchoranalysis.bean.NullParametersBean<CalculateLevel>
org.anchoranalysis.image.bean.threshold.CalculateLevel
org.anchoranalysis.image.bean.threshold.CalculateLevelUnary
public abstract class CalculateLevelUnary extends CalculateLevel
Implementation of
CalculateLevel that calls a single delegate CalculateLevel.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedCalculateLevelUnary() -
Method Summary
Modifier and Type Method Description protected intcalculateLevelFromDelegate(org.anchoranalysis.math.histogram.Histogram histogram)Determines a voxel intensity that can be used for thresholding from the delegatecalculateLevel.protected booleancanEqual(Object other)booleanequals(Object o)CalculateLevelgetCalculateLevel()The delegateCalculateLevel.inthashCode()voidsetCalculateLevel(CalculateLevel calculateLevel)The delegateCalculateLevel.Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
CalculateLevelUnary
protected CalculateLevelUnary()
-
-
Method Details
-
calculateLevelFromDelegate
protected int calculateLevelFromDelegate(org.anchoranalysis.math.histogram.Histogram histogram) throws OperationFailedExceptionDetermines a voxel intensity that can be used for thresholding from the delegatecalculateLevel.- Parameters:
histogram- a histogram of voxel-intensities from which a threshold-level can be derived.- Returns:
- the threshold-level.
- Throws:
OperationFailedException- if a level cannot be successfully calculated.
-
equals
- Specified by:
equalsin classCalculateLevel
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculateLevel
-
getCalculateLevel
The delegateCalculateLevel. -
setCalculateLevel
The delegateCalculateLevel.
-