|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.Powell
Facemorph.mdl.GLGroupwiseImageRegistration
public class GLGroupwiseImageRegistration
Open GL groupwise registration implementation
| Field Summary |
|---|
| Fields inherited from class Facemorph.Powell |
|---|
fittnessMemo, kNN, memo, TINY |
| Constructor Summary | |
|---|---|
GLGroupwiseImageRegistration(java.util.ArrayList<java.awt.image.BufferedImage> images,
int pw,
int ph)
Constructor for groupwise registration object |
|
| Method Summary | |
|---|---|
java.util.ArrayList<FloatImage[]> |
calculateDerivatives(FloatImage[] mean,
float shift)
Calculate the derivatives (x and y shift of each point) |
double |
func(double[] params)
Func should be overrided to calculate the error given the parameters params |
double |
func(double[] params,
boolean display)
Evaluate function with optional (debug) output / display |
static void |
main(java.lang.String[] args)
Main method for testing |
void |
onIteration(double[] params)
onIteration is called once per complete itrations to show the best current guess. |
void |
output(FloatImage[] fimg,
java.util.Vector<java.awt.geom.Point2D.Float> pts,
java.lang.String fname)
Output image and other data drawn on it for debugging |
void |
setUpWarp(FloatImage[] subject,
java.util.Vector<java.awt.geom.Point2D.Float> ptVec,
java.util.Vector<java.awt.geom.Point2D.Float> iPtVec)
Sets up the warping |
void |
zNormalise(FloatImage[] img,
int smoothness)
z normalisation of image |
| Methods inherited from class Facemorph.Powell |
|---|
linmin, optimiseGA, powell, powell, spsa, spsa2 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLGroupwiseImageRegistration(java.util.ArrayList<java.awt.image.BufferedImage> images,
int pw,
int ph)
images - the images to alignpw - the number of grid points horizontallyph - the number of grid points vertically| Method Detail |
|---|
public java.util.ArrayList<FloatImage[]> calculateDerivatives(FloatImage[] mean,
float shift)
mean - the mean image (or image whose derivatives you want to calculate)shift - the pixel shift of each point
public void setUpWarp(FloatImage[] subject,
java.util.Vector<java.awt.geom.Point2D.Float> ptVec,
java.util.Vector<java.awt.geom.Point2D.Float> iPtVec)
subject - the image to warpptVec - the vector of pointsiPtVec - the vector of new point locations
public void output(FloatImage[] fimg,
java.util.Vector<java.awt.geom.Point2D.Float> pts,
java.lang.String fname)
fimg - the image to writepts - the current pointsfname - the name of the image file to writepublic double func(double[] params)
Powell
func in class Powellparams - the parameters to evaluate
public double func(double[] params,
boolean display)
params - the parameter vectordisplay - should this be output in some way
public void zNormalise(FloatImage[] img,
int smoothness)
img - the image to normalisesmoothness - the smoothness parameterpublic void onIteration(double[] params)
Powell
onIteration in class Powellparams - the current params of the model
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
PowellException,
java.io.IOException
args - the program arguments
java.io.FileNotFoundException
PowellException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||