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, setThreshold
Methods inherited from class org.anchoranalysis.image.bean.threshold.CalculateLevelUnary
calculateLevelFromDelegate, getCalculateLevel, setCalculateLevel
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
-
IfGreaterThan
public IfGreaterThan()
-
-
Method Details
-
useElseInstead
protected boolean useElseInstead(int level, int threshold) Description copied from class:CalculateLevelRelativeToThreshold
Determines whether to use the alternative calculation method.- Specified by:
useElseInstead
in classCalculateLevelRelativeToThreshold
- Parameters:
level
- the level calculated by the delegateCalculateLevel
threshold
- the threshold value to compare against- Returns:
- true if the alternative calculation method should be used, false otherwise
-
equals
- Overrides:
equals
in classCalculateLevelRelativeToThreshold
-
canEqual
- Overrides:
canEqual
in classCalculateLevelRelativeToThreshold
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCalculateLevelRelativeToThreshold
-