Package com.jhlabs.image
Class GammaFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TransferFilter
com.jhlabs.image.GammaFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter for changing the gamma of an image.
-
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
ConstructorsConstructorDescriptionConstruct a GammaFilter.GammaFilter
(float gamma) Construct a GammaFilter.GammaFilter
(float rGamma, float gGamma, float bGamma) Construct a GammaFilter. -
Method Summary
Methods inherited from class com.jhlabs.image.TransferFilter
filter, filterRGB, getLUT, makeTable, transferFunction
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
-
GammaFilter
public GammaFilter()Construct a GammaFilter. -
GammaFilter
public GammaFilter(float gamma) Construct a GammaFilter.- Parameters:
gamma
- the gamma level for all RGB channels
-
GammaFilter
public GammaFilter(float rGamma, float gGamma, float bGamma) Construct a GammaFilter.- Parameters:
rGamma
- the gamma level for the red channelgGamma
- the gamma level for the blue channelbGamma
- the gamma level for the green channel
-
-
Method Details
-
setGamma
public void setGamma(float rGamma, float gGamma, float bGamma) Set the gamma levels.- Parameters:
rGamma
- the gamma level for the red channelgGamma
- the gamma level for the blue channelbGamma
- the gamma level for the green channel- See Also:
-
setGamma
public void setGamma(float gamma) Set the gamma level.- Parameters:
gamma
- the gamma level for all RGB channels- See Also:
-
getGamma
public float getGamma()Get the gamma level.- Returns:
- the gamma level for all RGB channels
- See Also:
-
initialize
protected void initialize()- Overrides:
initialize
in classTransferFilter
-
toString
-