Class GreaterThanThreshold
Object
AnchorBean<HistogramProvider>
InitializableBean<HistogramProvider, ImageInitialization>
ImageBean<HistogramProvider>
HistogramProvider
HistogramProviderUnary
GreaterThanThreshold
- All Implemented Interfaces:
Provider<Histogram>
public class GreaterThanThreshold
extends HistogramProviderUnary
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 TypeMethodDescriptionHistogramcreateFromHistogram(Histogram histogram) CalculateLevelCalculates the level for the thresholdvoidsetCalculateLevel(CalculateLevel calculateLevel) Calculates the level for the thresholdMethods inherited from class org.anchoranalysis.image.bean.provider.HistogramProviderUnary
get, getHistogram, setHistogramMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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
public Histogram createFromHistogram(Histogram histogram) throws ProvisionFailedException - Specified by:
createFromHistogramin classHistogramProviderUnary- Throws:
ProvisionFailedException
-
getCalculateLevel
public CalculateLevel getCalculateLevel()Calculates the level for the threshold -
setCalculateLevel
public void setCalculateLevel(CalculateLevel calculateLevel) Calculates the level for the threshold
-