|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.aam.CLM
public class CLM
Consatrained Local Model implementation
| Constructor Summary | |
|---|---|
CLM()
|
|
| Method Summary | |
|---|---|
void |
build(java.lang.String file,
HaarReader haar,
double varianceToExplain)
Builds a CLM model from a set of images listed in a file |
Template |
delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
Delineate am image using this CLM |
FloatImage |
getStrip(Template tem,
FloatImage fimg,
java.awt.Rectangle rect)
Gets the patches from all points arranged in a strip |
boolean |
processPatches(double varianceToExplain)
Builds the patch PCA model |
FloatImage |
project(FloatImage strip)
Projects the sampled patches into the patch model space |
void |
read(java.lang.String file)
Reads CLM data from a directory |
void |
write(java.lang.String file)
Writes PCI data to a directory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CLM()
| Method Detail |
|---|
public void build(java.lang.String file,
HaarReader haar,
double varianceToExplain)
throws java.io.FileNotFoundException,
java.io.IOException
file - the name of the image list filehaar - a face detectorvarianceToExplain - the amount of variance in the patch model
java.io.FileNotFoundException
java.io.IOException
public Template delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
throws PowellException
bimg - the image to delineatehaar - the face detectortemplate - used to initialise if not nullizp - the image zoom panel to use if animating the searcg
PowellException
public FloatImage getStrip(Template tem,
FloatImage fimg,
java.awt.Rectangle rect)
tem - the current templatefimg - the image to sample the patches fromrect - the face detection rectangle, if not null this indicates that the priors should be updated
public FloatImage project(FloatImage strip)
strip - the current patch strip
public boolean processPatches(double varianceToExplain)
varianceToExplain - the amount of variance to exmplain in the model
public void read(java.lang.String file)
throws java.io.IOException
file - The text file containing the names of the image component files and their variance
java.io.IOException - if the file can't be read
public void write(java.lang.String file)
throws java.io.IOException
file - The text file containing the names of the image component files and their variance
java.io.IOException - throws IOException if problem writing file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||