com.jhlabs.image

Class GainFilter

Implemented Interfaces:
BufferedImageOp, 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

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.
String
toString()
protected float
transferFunction(float f)

Methods inherited from class com.jhlabs.image.TransferFilter

filter, filterRGB, getLUT, initialize, makeTable, transferFunction

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Method Details

getBias

public float getBias()
Get the bias.
Returns:
the bias

getGain

public float getGain()
Get the gain.
Returns:
the gain

setBias

public void setBias(float bias)
Set the bias.
Parameters:
bias - the bias

setGain

public void setGain(float gain)
Set the gain.
Parameters:
gain - the gain

toString

public String toString()

transferFunction

protected float transferFunction(float f)
Overrides:
transferFunction in interface TransferFilter