|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.Warp
Facemorph.MultiscaleWarpRB
public class MultiscaleWarpRB
Implements a multi-scale interpolation algorithm
| Field Summary |
|---|
| Fields inherited from class Facemorph.Warp |
|---|
height, LINEAR, MULTISCALE, MULTISCALERB, theight, TPS, twidth, width, xshift, yshift |
| Constructor Summary | |
|---|---|
MultiscaleWarpRB(int w,
int h)
Creates a multi-scale warping object of the specified (equal input and output) dimensions |
|
MultiscaleWarpRB(int w,
int h,
int tw,
int th)
Creates a multi-scale warping object of the specified input and output dimensions |
|
| Method Summary | |
|---|---|
void |
concatenate(MultiscaleWarpRB warp1,
MultiscaleWarpRB warp2)
Concatenates two warps |
void |
copy(MultiscaleWarpRB warp)
Copy the given warp |
float[] |
get(int x,
int y)
return the value of the warping function at the specified position |
boolean |
interpolate(int n,
java.util.List<java.awt.geom.Point2D.Float> source,
java.util.List<java.awt.geom.Point2D.Float> dest,
boolean borders)
Interpolates the given 2D values across the 2D space, by performing setup then calling interpolate() |
boolean |
interpolate(int n,
java.awt.geom.Point2D.Float[] source,
java.awt.geom.Point2D.Float[] dest,
boolean borders)
Interpolates the given 2D values across the 2D space, by performing setup then calling interpolate() |
boolean |
interpolate(java.util.List<javax.vecmath.TexCoord2f> source,
java.util.List<javax.vecmath.TexCoord2f> dest,
boolean borders)
Interpolates using points in an ArrayList |
boolean |
interpolate(Template tmp1,
Template tmp2,
boolean sample,
boolean borders)
Interpolate this warping function from tmp1 to tmp2 |
boolean |
interpolate(javax.vecmath.TexCoord2f[] source,
javax.vecmath.TexCoord2f[] dest,
boolean borders)
Interpolates using the texture coords (values between 0 and 1) |
int |
upsample(MultiscaleWarpRB small,
float[] filter,
int m)
Upsample small into this |
| Methods inherited from class Facemorph.Warp |
|---|
concatenate, concatenate, convert, createWarp, getHeight, getWidth, 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 MultiscaleWarpRB(int w,
int h)
w - The desired widthh - The desired height
public MultiscaleWarpRB(int w,
int h,
int tw,
int th)
w - The desired widthh - The desired heighttw - The width of the source imageth - The height of the source image| Method Detail |
|---|
public void copy(MultiscaleWarpRB warp)
warp - the warp to copy
public boolean interpolate(Template tmp1,
Template tmp2,
boolean sample,
boolean borders)
interpolate in class Warptmp1 - Source templatetmp2 - target templatesample - should the contour samples be used, or just the control pointsborders - Should we pin the border down
public boolean interpolate(int n,
java.awt.geom.Point2D.Float[] source,
java.awt.geom.Point2D.Float[] dest,
boolean borders)
interpolate in class Warpn - The number of constraints to interpolatesource - The array of start pointsdest - The array of end pointsborders - Specifies whether to fix the points on the borders
public boolean interpolate(int n,
java.util.List<java.awt.geom.Point2D.Float> source,
java.util.List<java.awt.geom.Point2D.Float> dest,
boolean borders)
n - The number of constraints to interpolatesource - The array of start pointsdest - The array of end pointsborders - Specifies whether to fix the points on the borders
public boolean interpolate(javax.vecmath.TexCoord2f[] source,
javax.vecmath.TexCoord2f[] dest,
boolean borders)
source - The source coordinatesdest - The destination coordinatesborders - Specifices if the borders should be fixed
public boolean interpolate(java.util.List<javax.vecmath.TexCoord2f> source,
java.util.List<javax.vecmath.TexCoord2f> dest,
boolean borders)
source - The list of source pointsdest - The list of target pointsborders - Specifies if the borders should be fixed
public int upsample(MultiscaleWarpRB small,
float[] filter,
int m)
small - the small warp to upsamplefilter - the upsampling filterm - the mid (i.e. zero) point of the filter
public float[] get(int x,
int y)
get in class Warpx - The x-coordinatey - The y-coordinate
public void concatenate(MultiscaleWarpRB warp1,
MultiscaleWarpRB warp2)
warp1 - the first warpwarp2 - the second warp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||