com.jhlabs.image
Class GainFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TransferFilter
com.jhlabs.image.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.
GainFilter
public GainFilter()
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 String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.