Facemorph.mdl
Class GroupwiseImageRegistrationLinear

java.lang.Object
  extended by Facemorph.Powell
      extended by Facemorph.mdl.GroupwiseImageRegistrationLinear

public class GroupwiseImageRegistrationLinear
extends Powell

Linear Groupwise registration class


Field Summary
 
Fields inherited from class Facemorph.Powell
TINY
 
Constructor Summary
GroupwiseImageRegistrationLinear(java.util.ArrayList<java.awt.image.BufferedImage> images, int pcount)
          Constructor for GroupwiseImageRegistrationLinear
 
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

GroupwiseImageRegistrationLinear

public GroupwiseImageRegistrationLinear(java.util.ArrayList<java.awt.image.BufferedImage> images,
                                        int pcount)
Constructor for GroupwiseImageRegistrationLinear

Parameters:
images - the images to align
pcount - the point count
Method Detail

func

public double func(double[] params)
Description copied from class: Powell
Func should be overrided to calculate the error given the parameters params

Specified by:
func in class Powell
Parameters:
params - the parameters to evaluate
Returns:
returns the error

func

public double func(double[] params,
                   boolean display)
Error function evaluation with optional output (to terminal)

Parameters:
params - the parameters to evaluate
display - should the error be output
Returns:
return the evaluation of the function

onIteration

public void onIteration(double[] params)
Description copied from class: Powell
onIteration is called once per complete itrations to show the best current guess. It can be implemented with an empty body if not needed

Specified by:
onIteration in class Powell
Parameters:
params - the current params of the model

main

public static void main(java.lang.String[] args)
Main method for testing

Parameters:
args - args = list of images for aligning