org.jscience.media.pictures.filters
Class ContrastFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by org.jscience.media.pictures.filters.TransferFilter
              extended by org.jscience.media.pictures.filters.ContrastFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable

public class ContrastFilter
extends TransferFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.TransferFilter
bTable, gTable, initialized, rTable
 
Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
ContrastFilter()
           
 
Method Summary
 float getBias()
          DOCUMENT ME!
 float getGain()
          DOCUMENT ME!
 void setBias(float bias)
          DOCUMENT ME!
 void setGain(float gain)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  int transferFunction(int v)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransferFilter
filterRGB, initialize, makeTable, setDimensions
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContrastFilter

public ContrastFilter()
Method Detail

transferFunction

protected int transferFunction(int v)
DOCUMENT ME!

Overrides:
transferFunction in class TransferFilter
Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

setGain

public void setGain(float gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

getGain

public float getGain()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBias

public void setBias(float bias)
DOCUMENT ME!

Parameters:
bias - DOCUMENT ME!

getBias

public float getBias()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!