|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.LinearWarp_1
public class LinearWarp_1
Performs triangulated linear interpolation for image warping
| Constructor Summary | |
|---|---|
LinearWarp_1(int w,
int h,
int W,
int H,
boolean r)
Constructs a Linear warp with the input and output size specified |
|
| Method Summary | |
|---|---|
java.awt.Image |
drawTess(java.awt.Image img)
Draws the calculated triangulation on the image as a set of red lines, useful for testing the tesselation should already have been calculated e.g. |
static void |
main(java.lang.String[] args)
Main function used for testing |
java.awt.Image |
warpImage(int n,
java.awt.geom.Point2D.Float[] dest,
java.awt.geom.Point2D.Float[] source,
boolean borders,
java.awt.Image inImage)
Warps the input image from the shape specified by the source points to the shape specified by dest points |
java.awt.Image |
warpImage(Template t1,
Template t2,
boolean borders,
java.awt.Image inImage)
Warps inImage from shape t1 to shape t2 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearWarp_1(int w,
int h,
int W,
int H,
boolean r)
w - input widthh - input heightW - output widthH - output heightr - triangulate on reverse template??| Method Detail |
|---|
public java.awt.Image warpImage(Template t1,
Template t2,
boolean borders,
java.awt.Image inImage)
t1 - Template specifying input shapet2 - Template specifying output shapeborders - should the borders be pinned down, usually should be trueinImage - the input Image to warp
public java.awt.Image warpImage(int n,
java.awt.geom.Point2D.Float[] dest,
java.awt.geom.Point2D.Float[] source,
boolean borders,
java.awt.Image inImage)
inImage - The input Image to warpn - Number of input points to interpolatedest - List of destination points to interpolatesource - List of source points to interpolateborders - Indicates if the borders should be pinned down
(using a set of points round the image edge)
public java.awt.Image drawTess(java.awt.Image img)
img - The image to draw on
public static void main(java.lang.String[] args)
args - no parameters required
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||