|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFacemorph.Powell
Facemorph.mdl.GroupwiseImageRegistrationFile
public class GroupwiseImageRegistrationFile
Groupwise image registration using Powell's method
Field Summary |
---|
Fields inherited from class Facemorph.Powell |
---|
fittnessMemo, kNN, memo, TINY |
Constructor Summary | |
---|---|
GroupwiseImageRegistrationFile(java.util.ArrayList<java.lang.String> imageFiles,
int pcount,
java.lang.String baseDir)
Constructor takes an array of images and a grid point resolution |
Method Summary | |
---|---|
double |
func(double[] params)
Func should be overrided to calculate the error given the parameters params |
double |
func(double[] params,
boolean display)
Error function evaluation with optional output (to terminal) |
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. |
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 GroupwiseImageRegistrationFile(java.util.ArrayList<java.lang.String> imageFiles, int pcount, java.lang.String baseDir) throws java.io.IOException
images
- the images to try and alignpcount
- the number of control points to use
java.io.IOException
Method Detail |
---|
public double func(double[] params)
Powell
func
in class Powell
params
- the parameters to evaluate
public double func(double[] params, boolean display)
params
- the parameters to evaluatedisplay
- should the error be output
public void onIteration(double[] params)
Powell
onIteration
in class Powell
params
- the current params of the modelpublic static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
args
- args[0] = image list file
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |