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 int
calculateLevelFromDelegate
(Histogram histogram) Determines a voxel intensity that can be used for thresholding from the delegatecalculateLevel
.protected boolean
boolean
The delegateCalculateLevel
.int
hashCode()
void
setCalculateLevel
(CalculateLevel calculateLevel) The delegateCalculateLevel
.Methods inherited from class org.anchoranalysis.image.bean.threshold.CalculateLevel
calculateLevel
Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitialization
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods 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:
equals
in classCalculateLevel
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculateLevel
-
getCalculateLevel
The delegateCalculateLevel
. -
setCalculateLevel
The delegateCalculateLevel
.
-