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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Histogram
    createFromHistogram(Histogram histogram)
     
    CalculateLevel
    Calculates the level for the threshold
    void
    setCalculateLevel(CalculateLevel calculateLevel)
    Calculates the level for the 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

    • GreaterThanThreshold

      public GreaterThanThreshold()
  • Method Details

    • createFromHistogram

      public Histogram createFromHistogram(Histogram histogram) throws ProvisionFailedException
      Specified by:
      createFromHistogram in class HistogramProviderUnary
      Throws:
      ProvisionFailedException
    • getCalculateLevel

      public CalculateLevel getCalculateLevel()
      Calculates the level for the threshold
    • setCalculateLevel

      public void setCalculateLevel(CalculateLevel calculateLevel)
      Calculates the level for the threshold