Class GainFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

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

      • GainFilter

        public GainFilter()
    • Method Detail

      • setGain

        public void setGain​(float gain)
        Set the gain.
        Parameters:
        gain - the gain, min-value: 0, max-value: 1.
        See Also:
        getGain()
      • getGain

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

        public void setBias​(float bias)
        Set the bias.
        Parameters:
        bias - the bias, min-value: 0, max-value: 1.
        See Also:
        getBias()
      • getBias

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object