|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.MultiscaleInterpolate
public class MultiscaleInterpolate
Implements a multi-scale interpolation algorithm
Constructor Summary | |
---|---|
MultiscaleInterpolate(int w,
int h)
Creates a multi-scale warping object of the specified (equal input and output) dimensions |
Method Summary | |
---|---|
float |
get(int x,
int y)
return the value of the warping function at the specified position |
boolean |
interpolate(FloatImage mask,
FloatImage data)
Interpolates the data using the mask to specify valid samples |
boolean |
interpolate(java.awt.geom.Point2D.Float[] source,
float[] vals)
Interpolates the given 2D values across the 2D space, by performing setup then calling interpolate() |
float |
sample(float x,
float y)
Sample from this interpolation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiscaleInterpolate(int w, int h)
w
- The desired widthh
- The desired heightMethod Detail |
---|
public boolean interpolate(FloatImage mask, FloatImage data)
mask
- the mask specifies valid samplesdata
- the data specifies the interpolation constraints
public boolean interpolate(java.awt.geom.Point2D.Float[] source, float[] vals)
vals
- the values of the interpolation constraintssource
- The array of start point locations
public float get(int x, int y)
x
- The x-coordinatey
- The y-coordinate
public float sample(float x, float y)
x
- x-coord to sample aty
- y-coord to sample at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |