Class CalculateLevelUnary
- Direct Known Subclasses:
CalculateLevelRelativeToThreshold,ClampHistogramMax,EmptyHistogramConstant
Implementation of
CalculateLevel that calls a single delegate CalculateLevel.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateLevelFromDelegate(Histogram histogram) Determines a voxel intensity that can be used for thresholding from the delegatecalculateLevel.protected booleanbooleanThe delegateCalculateLevel.inthashCode()voidsetCalculateLevel(CalculateLevel calculateLevel) The delegateCalculateLevel.Methods inherited from class org.anchoranalysis.image.bean.threshold.CalculateLevel
calculateLevelMethods 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
Determines 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.
-