Class ClampHistogramMax
Clamps the input-histogram to a certain maximum value, and then delegates the calculate-level.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.image.bean.threshold.CalculateLevelUnary
calculateLevelFromDelegate, getCalculateLevel, setCalculateLevelMethods 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
-
ClampHistogramMax
public ClampHistogramMax()
-
-
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
- Overrides:
equalsin classCalculateLevelUnary
-
canEqual
- Overrides:
canEqualin classCalculateLevelUnary
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculateLevelUnary
-
getMax
public int getMax() -
setMax
public void setMax(int max)
-