Class Otsu
Performs auto-thresholding using Otsu's method.
This performs binary thresholding into foreground and background.
This minimizes intra-class intensity variance, or equivalently, maximizes inter-class variance.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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
-
Otsu
public Otsu()
-
-
Method Details
-
calculateLevel
Description copied from class:CalculateLevelDetermines a voxel intensity that can be used for thresholding.- Specified by:
calculateLevelin classCalculateLevel- 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
-