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 aHistogram
given the entity provided by the delegate.int
boolean
isMerge()
void
setMerge
(boolean merge) void
setThreshold
(int threshold) Methods 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
-
CutBelowThreshold
public CutBelowThreshold()
-
-
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.
-
getThreshold
public int getThreshold() -
setThreshold
public void setThreshold(int threshold) -
isMerge
public boolean isMerge() -
setMerge
public void setMerge(boolean merge)
-