Class CutBelowThreshold

Object
AnchorBean<HistogramProvider>
InitializableBean<HistogramProvider, ImageInitialization>
ImageBean<HistogramProvider>
HistogramProvider
HistogramProviderUnary
CutBelowThreshold
All Implemented Interfaces:
Provider<Histogram>

public class CutBelowThreshold extends HistogramProviderUnary
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Histogram
    createFromHistogram(Histogram histogram)
     
    int
     
    boolean
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CutBelowThreshold

      public CutBelowThreshold()
  • Method Details

    • createFromHistogram

      public Histogram createFromHistogram(Histogram histogram)
      Specified by:
      createFromHistogram in class HistogramProviderUnary
    • getThreshold

      public int getThreshold()
    • setThreshold

      public void setThreshold(int threshold)
    • isMerge

      public boolean isMerge()
    • setMerge

      public void setMerge(boolean merge)