|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.Powell
Facemorph.mdl.MDL2D
public class MDL2D
Attempt at minimum description length based alignment
| Field Summary |
|---|
| Fields inherited from class Facemorph.Powell |
|---|
TINY |
| Constructor Summary | |
|---|---|
MDL2D(int w,
int h,
java.awt.image.BufferedImage bimg,
double[] currentParams,
java.util.ArrayList<java.awt.image.BufferedImage> images,
java.util.ArrayList<double[]> params,
double shapeError,
double colourError)
Constructor for MDL |
|
| Method Summary | |
|---|---|
double |
func(double[] params)
Func should be overrided to calculate the error given the parameters params |
static void |
main(java.lang.String[] args)
Main method used for testing |
void |
onIteration(double[] params)
onIteration is called once per complete itrations to show the best current guess. |
static void |
readImagesAndTemplates(java.lang.String listFile,
java.util.ArrayList<java.awt.image.BufferedImage> images,
java.util.ArrayList<Template> templates)
Read the images and Template from a list file |
| 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 MDL2D(int w,
int h,
java.awt.image.BufferedImage bimg,
double[] currentParams,
java.util.ArrayList<java.awt.image.BufferedImage> images,
java.util.ArrayList<double[]> params,
double shapeError,
double colourError)
w - widthh - heightbimg - the BufferedImagecurrentParams - the current parametersimages - the image listparams - initial parameters for each imageshapeError - shape error weightingcolourError - colour error weighting| Method Detail |
|---|
public double func(double[] params)
Powell
func in class Powellparams - the parameters to evaluate
public void onIteration(double[] params)
Powell
onIteration in class Powellparams - the current params of the model
public static void readImagesAndTemplates(java.lang.String listFile,
java.util.ArrayList<java.awt.image.BufferedImage> images,
java.util.ArrayList<Template> templates)
throws java.io.FileNotFoundException,
java.io.IOException
listFile - the list file to useimages - the array of images to put the image intemplates - the array of templates to put the templates in
java.io.FileNotFoundException
java.io.IOException
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException
args - args[0] = list of images and templates
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||