All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jhlabs.image.WarpFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----com.jhlabs.image.WholeImageFilter
                   |
                   +----com.jhlabs.image.WarpFilter

public class WarpFilter
extends com.jhlabs.image.WholeImageFilter
A filter for warping images using the gridwarp algorithm. You need to supply two warp grids, one for the source image and one for the destination image. The image will be warped so that a point in the source grid moves to its counterpart in the destination grid.


Constructor Index

 o WarpFilter()
Create a WarpFilter.
 o WarpFilter(WarpGrid, WarpGrid)
Create a WarpFilter with two warp grids.

Method Index

 o crossDissolve(int[], int[], int, int, double)
 o getDestGrid()
Get the destination warp grid.
 o getFrames()
 o getPixels(Image, int, int)
 o getSourceGrid()
Get the source warp grid.
 o imageComplete(int)
 o morph(int[], int[], int[], WarpGrid, WarpGrid, int, int, double)
 o setDestGrid(WarpGrid)
Set the destination warp grid.
 o setFrames(int)
 o setSourceGrid(WarpGrid)
Set the source warp grid.
 o toString()
 o transformSpace(Rectangle)

Constructors

 o WarpFilter
 public WarpFilter()
Create a WarpFilter.

 o WarpFilter
 public WarpFilter(com.jhlabs.image.WarpGrid sourceGrid,
                   com.jhlabs.image.WarpGrid destGrid)
Create a WarpFilter with two warp grids.

Parameters:
sourceGrid - the source grid
destGrid - the destination grid

Methods

 o setSourceGrid
 public void setSourceGrid(com.jhlabs.image.WarpGrid sourceGrid)
Set the source warp grid.

Parameters:
sourceGrid - the source grid
 o getSourceGrid
 public com.jhlabs.image.WarpGrid getSourceGrid()
Get the source warp grid.

Returns:
the source grid
 o setDestGrid
 public void setDestGrid(com.jhlabs.image.WarpGrid destGrid)
Set the destination warp grid.

Parameters:
destGrid - the destination grid
 o getDestGrid
 public com.jhlabs.image.WarpGrid getDestGrid()
Get the destination warp grid.

Returns:
the destination grid
 o setFrames
 public void setFrames(int frames)
 o getFrames
 public int getFrames()
 o transformSpace
 protected void transformSpace(java.awt.Rectangle r)
Overrides:
transformSpace in class com.jhlabs.image.WholeImageFilter
 o imageComplete
 public void imageComplete(int status)
Overrides:
imageComplete in class java.awt.image.ImageFilter
 o getPixels
 public int[] getPixels(java.awt.Image image,
                        int width,
                        int height)
 o morph
 public void morph(int srcPixels[],
                   int destPixels[],
                   int outPixels[],
                   com.jhlabs.image.WarpGrid srcGrid,
                   com.jhlabs.image.WarpGrid destGrid,
                   int width,
                   int height,
                   double t)
 o crossDissolve
 public void crossDissolve(int pixels1[],
                           int pixels2[],
                           int width,
                           int height,
                           double t)
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index