Class EmptyHistogramConstant

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

public class EmptyHistogramConstant extends CalculateLevelUnary
Specifies a constant if a histogram is empty, otherwise delegates to another {#link org.anchoranalysis.image.bean.threshold.CalculateLevel}
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
    setValue(int value)
     

    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

    • EmptyHistogramConstant

      public EmptyHistogramConstant()
  • 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
    • getValue

      public int getValue()
    • setValue

      public void setValue(int value)