Class CutBelowThreshold
This cuts a Histogram below a threshold BUT TRANSFERS ALL THE COUNT greater than equal to the
threshold into the bin just below the threshold value
Note that this is NOT SYMMETRIC behaviour with HistogramProviderAbove
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromHistogram(Histogram histogram) Creates aHistogramgiven the entity provided by the delegate.intbooleanisMerge()voidsetMerge(boolean merge) voidsetThreshold(int threshold) Methods 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
-
CutBelowThreshold
public CutBelowThreshold()
-
-
Method Details
-
createFromHistogram
Description copied from class:HistogramProviderUnaryCreates aHistogramgiven the entity provided by the delegate.- Specified by:
createFromHistogramin classHistogramProviderUnary- Parameters:
histogram- the entity provided by the delegate.- Returns:
- the created
Histogramthat is returned by the provider.
-
getThreshold
public int getThreshold() -
setThreshold
public void setThreshold(int threshold) -
isMerge
public boolean isMerge() -
setMerge
public void setMerge(boolean merge)
-