|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.Warp Facemorph.TPSWarp
public class TPSWarp
Thin plate spline warping class
Field Summary |
---|
Fields inherited from class Facemorph.Warp |
---|
height, LINEAR, MULTISCALE, MULTISCALERB, TPS, width, xshift, yshift |
Constructor Summary | |
---|---|
TPSWarp()
Constructor for empty thin plate spline warp |
|
TPSWarp(int xsize,
int ysize)
Constructor for TPS warp of given size |
Method Summary | |
---|---|
boolean |
interpolate(int n,
java.awt.geom.Point2D.Float[] sp,
java.awt.geom.Point2D.Float[] dp,
boolean borders)
Method to interpolate the warping function |
Methods inherited from class Facemorph.Warp |
---|
concatenate, concatenate, convert, createWarp, get, getHeight, getWidth, interpolate, interpolate, interpolate, iterate, overlap, reconvert, sample, sample, scaleWarp, set, stripPoints, warpFloatImage, warpImage, warpImage, warpImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TPSWarp()
public TPSWarp(int xsize, int ysize)
xsize
- the widthysize
- the heightMethod Detail |
---|
public boolean interpolate(int n, java.awt.geom.Point2D.Float[] sp, java.awt.geom.Point2D.Float[] dp, boolean borders)
Warp
interpolate
in class Warp
n
- The number of constraintssp
- The start pointsdp
- The target pointsborders
- if true fix the borders
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |