Class CalculateLevel
- Direct Known Subclasses:
CalculateLevelListBase
,CalculateLevelUnary
,Constant
,Otsu
,OtsuWeighted
,Quantile
Calculates a threshold-level from a histogram.
A well-behaved CalculateLevel
should implements equals(java.lang.Object)
and hashCode()
.
If this is not possible, these methods should instead throw a run-time exception.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
calculateLevel
(Histogram histogram) Determines a voxel intensity that can be used for thresholding.abstract boolean
abstract int
hashCode()
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
-
CalculateLevel
protected CalculateLevel()
-
-
Method Details
-
calculateLevel
Determines a voxel intensity that can be used for thresholding.- 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
-
hashCode
public abstract int hashCode()
-