Class ClampHistogramMax

Object
AnchorBean<CalculateLevel>
InitializableBean<CalculateLevel, NullInitialization>
NullParametersBean<CalculateLevel>
CalculateLevel
CalculateLevelUnary
ClampHistogramMax

public class ClampHistogramMax extends CalculateLevelUnary
Clamps the input-histogram to a certain maximum value, and then delegates the calculate-level.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    calculateLevel(Histogram histogram)
     
    protected boolean
     
    boolean
     
    int
     
    int
     
    void
    setMax(int max)
     

    Methods inherited from class org.anchoranalysis.image.bean.threshold.CalculateLevelUnary

    calculateLevelFromDelegate, getCalculateLevel, setCalculateLevel

    Methods inherited from class org.anchoranalysis.bean.NullParametersBean

    initializeRecursive, onInitialization, onInitialization

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    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, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClampHistogramMax

      public ClampHistogramMax()
  • Method Details

    • calculateLevel

      public int calculateLevel(Histogram histogram) throws OperationFailedException
      Specified by:
      calculateLevel in class CalculateLevel
      Throws:
      OperationFailedException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CalculateLevelUnary
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class CalculateLevelUnary
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CalculateLevelUnary
    • getMax

      public int getMax()
    • setMax

      public void setMax(int max)