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, 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
-
Otsu
public Otsu()
-
-
Method Details
-
calculateLevel
Description copied from class:CalculateLevel
Determines a voxel intensity that can be used for thresholding.- Specified by:
calculateLevel
in 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:
equals
in classCalculateLevel
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculateLevel
-