com.jhlabs.image
Class GainFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.PointFilter
          extended by com.jhlabs.image.TransferFilter
              extended by com.jhlabs.image.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.


Field Summary
 
Fields inherited from class com.jhlabs.image.TransferFilter
bTable, gTable, initialized, rTable
 
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
 
Constructor Summary
GainFilter()
           
 
Method Summary
 float getBias()
          Get the bias.
 float getGain()
          Get the gain.
 void setBias(float bias)
          Set the bias.
 void setGain(float gain)
          Set the gain.
 java.lang.String toString()
           
protected  float transferFunction(float f)
           
 
Methods inherited from class com.jhlabs.image.TransferFilter
filter, filterRGB, getLUT, initialize, makeTable
 
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GainFilter

public GainFilter()
Method Detail

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()

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
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