Class GreaterThanThreshold
Thresholds a histogram using a CalculateLevel keeping only the values greater equal than the
threshold
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromHistogram
(Histogram histogram) Creates aHistogram
given the entity provided by the delegate.Calculates the level for the thresholdvoid
setCalculateLevel
(CalculateLevel calculateLevel) Calculates the level for the thresholdMethods inherited from class org.anchoranalysis.image.bean.provider.HistogramProviderUnary
get, getHistogram, setHistogram
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
GreaterThanThreshold
public GreaterThanThreshold()
-
-
Method Details
-
createFromHistogram
Description copied from class:HistogramProviderUnary
Creates aHistogram
given the entity provided by the delegate.- Specified by:
createFromHistogram
in classHistogramProviderUnary
- Parameters:
histogram
- the entity provided by the delegate.- Returns:
- the created
Histogram
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getCalculateLevel
Calculates the level for the threshold -
setCalculateLevel
Calculates the level for the threshold
-