Facemorph.aam
Class MultiscaleAAM

java.lang.Object
  extended by Facemorph.aam.MultiscaleAAM

public class MultiscaleAAM
extends java.lang.Object

Multiscale AAM implementation


Constructor Summary
MultiscaleAAM(Mask mask, ASM asm, PCI pci, int type, int warpType)
          Creates a new instance of MultiscaleAAM
 
Method Summary
 Template fitAAM(java.awt.Image subject, Template template)
          Fit a multiscale AAM
 Template fitAAM(java.awt.Image subject, Template template, int maxIts, int maxLoops, int start)
          Fit a multiscale AAM
static void main(java.lang.String[] args)
          Main method for testing
 void test(java.lang.String imageList, java.lang.String resultsFile, java.lang.String outDir)
          Test the multiscale AAM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiscaleAAM

public MultiscaleAAM(Mask mask,
                     ASM asm,
                     PCI pci,
                     int type,
                     int warpType)
Creates a new instance of MultiscaleAAM

Parameters:
mask - Mask to use
asm - the active shape model (PCA shape model)
pci - the image PCA model
type - the type of AAM algorithm
warpType - the type of warp to use
See Also:
Warp.createWarp(int, int, int, int, int, boolean)
Method Detail

fitAAM

public Template fitAAM(java.awt.Image subject,
                       Template template)
Fit a multiscale AAM

Parameters:
subject - the image to fit to
template - the template to use
Returns:
return the estimated template

fitAAM

public Template fitAAM(java.awt.Image subject,
                       Template template,
                       int maxIts,
                       int maxLoops,
                       int start)
Fit a multiscale AAM

Parameters:
subject - the image to fit to
template - the template to use
maxIts - the maximum iterations to use per loop
maxLoops - the maximum loops to use per scale
start - the starting counter (for debug output)
Returns:
return the estimated template

main

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

Parameters:
args - the args

test

public void test(java.lang.String imageList,
                 java.lang.String resultsFile,
                 java.lang.String outDir)
Test the multiscale AAM

Parameters:
imageList - the list of images to test
resultsFile - the output file
outDir - the output directory