Class CalculateLevel
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,NullInitialization>
org.anchoranalysis.bean.NullParametersBean<CalculateLevel>
org.anchoranalysis.image.bean.threshold.CalculateLevel
- Direct Known Subclasses:
CalculateLevelUnary
public abstract class CalculateLevel extends NullParametersBean<CalculateLevel>
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 Modifier Constructor Description protectedCalculateLevel() -
Method Summary
Modifier and Type Method Description abstract intcalculateLevel(org.anchoranalysis.math.histogram.Histogram histogram)Determines a voxel intensity that can be used for thresholding.abstract booleanequals(Object obj)abstract inthashCode()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
-
CalculateLevel
protected CalculateLevel()
-
-
Method Details
-
calculateLevel
public abstract int calculateLevel(org.anchoranalysis.math.histogram.Histogram histogram) throws OperationFailedExceptionDetermines 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()
-