|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.oesf.ORASM3D
public class ORASM3D
3D Orasm implementation
Constructor Summary | |
---|---|
ORASM3D()
|
Method Summary | |
---|---|
void |
batchDelineate(java.lang.String file,
java.lang.String append)
Batch delineation method |
Template3D |
delineate(java.awt.image.BufferedImage bimg,
Template template,
ImageZoomPanel izp,
boolean combine,
boolean weighted,
int iterations)
Delineate an image using this 3D ORASM model |
static void |
main(java.lang.String[] args)
Main method used for testing |
void |
read(java.lang.String folder,
java.lang.String name,
HaarReader haar)
Read an orasm 3d from file |
static Template |
to2D(Template3D t3d,
java.util.ArrayList<java.lang.Boolean> active)
Convert a 3D template to a 2d one |
static BigMat |
toRotation(BigMat M)
Projects M into a valid roation matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ORASM3D()
Method Detail |
---|
public void read(java.lang.String folder, java.lang.String name, HaarReader haar) throws java.io.IOException
folder
- the folder to read fromname
- the name of the file to readhaar
- the HaarReader object to detect faces
java.io.IOException
public Template3D delineate(java.awt.image.BufferedImage bimg, Template template, ImageZoomPanel izp, boolean combine, boolean weighted, int iterations)
bimg
- the buffered image to searchtemplate
- used to store the output 2D templateizp
- the image zoom panel to animate the searchcombine
- if true tries with all views and pcks the bestweighted
- if weighted the maximum response is used to weight the vote in favour of the highest responding filter setiterations
- the number of iterations (not currently used)
public static Template to2D(Template3D t3d, java.util.ArrayList<java.lang.Boolean> active)
t3d
- the input 3D templateactive
- the active points to use
public static BigMat toRotation(BigMat M)
M
- the un-normalised estimate of the rotation
public void batchDelineate(java.lang.String file, java.lang.String append) throws java.io.FileNotFoundException, java.io.IOException
file
- the file listing the images to delineateappend
- the string to append to the delineated results
java.io.FileNotFoundException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException
args
- if args[0] image of list file name, args[1] haar cascade, args[2] orasm3d folder, args[3] orasm3d file name, args[4] string to append to output (if in batch mode)
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |