Class IfGreaterThan
Calculates a level from the first delegate and if greater than a threshold, recalculates from a
second delegate.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.plugin.image.bean.histogram.threshold.CalculateLevelRelativeToThreshold
calculateLevel, getCalculateLevelElse, getThreshold, setCalculateLevelElse, setThresholdMethods 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
-
IfGreaterThan
public IfGreaterThan()
-
-
Method Details
-
useElseInstead
protected boolean useElseInstead(int level, int threshold) Description copied from class:CalculateLevelRelativeToThresholdDetermines whether to use the alternative calculation method.- Specified by:
useElseInsteadin classCalculateLevelRelativeToThreshold- Parameters:
level- the level calculated by the delegateCalculateLevelthreshold- the threshold value to compare against- Returns:
- true if the alternative calculation method should be used, false otherwise
-
equals
- Overrides:
equalsin classCalculateLevelRelativeToThreshold
-
canEqual
- Overrides:
canEqualin classCalculateLevelRelativeToThreshold
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculateLevelRelativeToThreshold
-