org.jscience.media.pictures.filters
Class PerspectivFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by org.jscience.media.pictures.filters.WholeImageFilter
          extended by org.jscience.media.pictures.filters.TransformFilter
              extended by org.jscience.media.pictures.filters.PerspectivFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable

public class PerspectivFilter
extends TransformFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.TransformFilter
CLAMP, edgeAction, WRAP, ZERO
 
Fields inherited from class org.jscience.media.pictures.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
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
PerspectivFilter()
          Creates a new PerspectivFilter object.
PerspectivFilter(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
          Creates a new PerspectivFilter object.
 
Method Summary
 void setCorners(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  void transformInverse(int x, int y, float[] out)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransformFilter
getEdgeAction, imageComplete, setEdgeAction, transformSpace
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerspectivFilter

public PerspectivFilter()
Creates a new PerspectivFilter object.


PerspectivFilter

public PerspectivFilter(float x0,
                        float y0,
                        float x1,
                        float y1,
                        float x2,
                        float y2,
                        float x3,
                        float y3)
Creates a new PerspectivFilter object.

Parameters:
x0 - DOCUMENT ME!
y0 - DOCUMENT ME!
x1 - DOCUMENT ME!
y1 - DOCUMENT ME!
x2 - DOCUMENT ME!
y2 - DOCUMENT ME!
x3 - DOCUMENT ME!
y3 - DOCUMENT ME!
Method Detail

setCorners

public void setCorners(float x0,
                       float y0,
                       float x1,
                       float y1,
                       float x2,
                       float y2,
                       float x3,
                       float y3)
DOCUMENT ME!

Parameters:
x0 - DOCUMENT ME!
y0 - DOCUMENT ME!
x1 - DOCUMENT ME!
y1 - DOCUMENT ME!
x2 - DOCUMENT ME!
y2 - DOCUMENT ME!
x3 - DOCUMENT ME!
y3 - DOCUMENT ME!

transformInverse

protected void transformInverse(int x,
                                int y,
                                float[] out)
DOCUMENT ME!

Specified by:
transformInverse in class TransformFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
out - DOCUMENT ME!

toString

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

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