Package 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
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
Constructors -
Method Summary
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
-
Constructor Details
-
GainFilter
public GainFilter()
-
-
Method Details
-
transferFunction
protected float transferFunction(float f) - Overrides:
transferFunction
in classTransferFilter
-
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
-