|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.oesf.ORASM
public class ORASM
An Optimal Response ASM implmentation
| Constructor Summary | |
|---|---|
ORASM()
|
|
| Method Summary | |
|---|---|
void |
build(java.lang.String file,
java.lang.String tuneFile,
HaarReader haar)
Build an ORASM feature detector |
Template |
delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
double[] fit,
ImageZoomPanel izp)
Delineate using this ORASM using an exhaustive local search ELS based method |
Template |
delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
Delineate using this ORASM using an exhaustive local search ELS based method |
Template |
delineateCLM(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
Delineate using this ORASM using an constrain local model (CLM) style search |
Template |
delineateCQF(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
Delineate using this ORASM using an convex quadratic fitting (CQF) based method |
Template |
delineateCQF(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp,
int iterations,
boolean tuning)
Delineate using this ORASM using an convex quadratic fitting (CQF) based method |
Template |
getPriorTemplate()
|
static void |
main(java.lang.String[] args)
Main method for testing |
void |
read(java.lang.String folder,
java.lang.String name,
float maxvar)
Read an ORASM model |
void |
tune(java.lang.String file,
HaarReader haar)
Tune the lambda parameters for the model |
void |
write(java.lang.String folder,
java.lang.String name)
Write an ORASM face detector to disk |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ORASM()
| Method Detail |
|---|
public void build(java.lang.String file,
java.lang.String tuneFile,
HaarReader haar)
throws java.io.FileNotFoundException,
java.io.IOException
file - the file listing the training images + templatestuneFile - file listing the tuning datahaar - the face detector
java.io.FileNotFoundException
java.io.IOExceptionpublic Template getPriorTemplate()
public void tune(java.lang.String file,
HaarReader haar)
throws java.io.FileNotFoundException
file - the list of tuning images and templateshaar - the face detector
java.io.FileNotFoundException
public void write(java.lang.String folder,
java.lang.String name)
throws java.io.IOException
folder - the folder name for storing the model partsname - the file name for the .orasm file (no extension)
java.io.IOException
public void read(java.lang.String folder,
java.lang.String name,
float maxvar)
throws java.io.IOException
folder - the folder containing the dataname - the orasm description file (no extension)maxvar - the maximum variance for the shape model to explain
java.io.IOException
public Template delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
bimg - the buffered image to detect the features inhaar - the face detector to usetemplate - the template to use for initialisation (can be null for default initialisation)izp - the ImageZoomPanel for animating the fitting process
public Template delineate(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
double[] fit,
ImageZoomPanel izp)
bimg - the buffered image to detect the features inhaar - the face detector to usetemplate - the template to use for initialisation (can be null for default initialisation)fit - storage space for returning the quality of the fit (sum of feature responses)izp - the ImageZoomPanel for animating the fitting process
public Template delineateCLM(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
throws PowellException
bimg - the buffered image to detect the features inhaar - the face detector to usetemplate - the template to use for initialisation (can be null for default initialisation)izp - the ImageZoomPanel for animating the fitting process
PowellException
public Template delineateCQF(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp)
bimg - the buffered image to detect the features inhaar - the face detector to usetemplate - the template to use for initialisation (can be null for default initialisation)izp - the ImageZoomPanel for animating the fitting process
public Template delineateCQF(java.awt.image.BufferedImage bimg,
HaarReader haar,
Template template,
ImageZoomPanel izp,
int iterations,
boolean tuning)
bimg - the buffered image to detect the features inhaar - the face detector to usetemplate - the template to use for initialisation (can be null for default initialisation)izp - the ImageZoomPanel for animating the fitting processiterations - the number of iterations to performtuning - true if we are performing tuning
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException
args - the args list {list-file, output folder, append string, output file}
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||