Class GainFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class GainFilter extends TransferFilter
A filter which changes the gain and bias of an image - similar to ContrastFilter.
  • Constructor Details

    • GainFilter

      public GainFilter()
  • Method Details

    • transferFunction

      protected float transferFunction(float f)
      Overrides:
      transferFunction in class TransferFilter
    • setGain

      public void setGain(float gain)
      Set the gain.
      Parameters:
      gain - the gain
      See Also:
    • getGain

      public float getGain()
      Get the gain.
      Returns:
      the gain
      See Also:
    • setBias

      public void setBias(float bias)
      Set the bias.
      Parameters:
      bias - the bias
      See Also:
    • getBias

      public float getBias()
      Get the bias.
      Returns:
      the bias
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object