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.
-
WarpFilter()
- Create a WarpFilter.
-
WarpFilter(WarpGrid, WarpGrid)
- Create a WarpFilter with two warp grids.
-
crossDissolve(int[], int[], int, int, double)
-
-
getDestGrid()
- Get the destination warp grid.
-
getFrames()
-
-
getPixels(Image, int, int)
-
-
getSourceGrid()
- Get the source warp grid.
-
imageComplete(int)
-
-
morph(int[], int[], int[], WarpGrid, WarpGrid, int, int, double)
-
-
setDestGrid(WarpGrid)
- Set the destination warp grid.
-
setFrames(int)
-
-
setSourceGrid(WarpGrid)
- Set the source warp grid.
-
toString()
-
-
transformSpace(Rectangle)
-
WarpFilter
public WarpFilter()
- Create a WarpFilter.
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
setSourceGrid
public void setSourceGrid(com.jhlabs.image.WarpGrid sourceGrid)
- Set the source warp grid.
- Parameters:
- sourceGrid - the source grid
getSourceGrid
public com.jhlabs.image.WarpGrid getSourceGrid()
- Get the source warp grid.
- Returns:
- the source grid
setDestGrid
public void setDestGrid(com.jhlabs.image.WarpGrid destGrid)
- Set the destination warp grid.
- Parameters:
- destGrid - the destination grid
getDestGrid
public com.jhlabs.image.WarpGrid getDestGrid()
- Get the destination warp grid.
- Returns:
- the destination grid
setFrames
public void setFrames(int frames)
getFrames
public int getFrames()
transformSpace
protected void transformSpace(java.awt.Rectangle r)
- Overrides:
- transformSpace in class com.jhlabs.image.WholeImageFilter
imageComplete
public void imageComplete(int status)
- Overrides:
- imageComplete in class java.awt.image.ImageFilter
getPixels
public int[] getPixels(java.awt.Image image,
int width,
int height)
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)
crossDissolve
public void crossDissolve(int pixels1[],
int pixels2[],
int width,
int height,
double t)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index