com.jhlabs.image

Class TransferFilter

Implemented Interfaces:
BufferedImageOp, Cloneable
Known Direct Subclasses:
ContrastFilter, CurvesFilter, ExposureFilter, GainFilter, GammaFilter, RescaleFilter, SolarizeFilter

public abstract class TransferFilter
extends PointFilter

Field Summary

protected int[]
bTable
protected int[]
gTable
protected boolean
initialized
protected int[]
rTable

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

TransferFilter()

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
int
filterRGB(int x, int y, int rgb)
int[]
getLUT()
protected void
initialize()
protected int[]
makeTable()
protected float
transferFunction(float v)

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

Field Details

bTable

protected int[] bTable

gTable

protected int[] gTable

initialized

protected boolean initialized

rTable

protected int[] rTable

Constructor Details

TransferFilter

public TransferFilter()

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface PointFilter

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getLUT

public int[] getLUT()

initialize

protected void initialize()

makeTable

protected int[] makeTable()

transferFunction

protected float transferFunction(float v)