Facemorph
Class MDL

java.lang.Object
  extended by Facemorph.MDL

public class MDL
extends java.lang.Object

Initial attempt at minimum description length coding


Constructor Summary
MDL(java.lang.String listFile, int w, int h, MaskInterface mask, double var)
          Creates a new instance of MDL
 
Method Summary
 void buildModel(int i)
          Rebuild the PCA model leaving one image out
 void optimise(int i)
          Optimise image i using the current model using Powell's method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDL

public MDL(java.lang.String listFile,
           int w,
           int h,
           MaskInterface mask,
           double var)
Creates a new instance of MDL

Parameters:
listFile - List of images and templates to match
w - the model image width
mask - the mask to use
var - the variance to explain??
h - the model image height
Method Detail

buildModel

public void buildModel(int i)
Rebuild the PCA model leaving one image out

Parameters:
i - The index of the image to leave out of the model this iteration

optimise

public void optimise(int i)
Optimise image i using the current model using Powell's method

Parameters:
i - the index of the image to optimise