|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj2d.face.EigenFaceCreator
public class EigenFaceCreator
Creates the FaceBundle's from the list of images and tries to match against submitted image.
Field Summary | |
---|---|
double |
DISTANCE
Our minimum distance observed for the submitted image in the face-spaces. |
static double |
THRESHOLD
Our threshold for accepting the matched image. |
int |
USE_CACHE
This determines if caching of face-spaces should be activated. |
Constructor Summary | |
---|---|
EigenFaceCreator()
|
Method Summary | |
---|---|
java.lang.String |
checkAgainst(java.io.File f)
Match against the given file. |
void |
readFaceBundles(java.io.File rootDir)
Construct the face-spaces from the given directory. |
double[] |
readImage(java.io.File f)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double THRESHOLD
public double DISTANCE
public int USE_CACHE
Constructor Detail |
---|
public EigenFaceCreator()
Method Detail |
---|
public java.lang.String checkAgainst(java.io.File f) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public void readFaceBundles(java.io.File rootDir) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException, java.lang.ClassNotFoundException
rootDir
- The directory where the training images are located.
java.io.FileNotFoundException
- The rootDir
directory
does not exist.
java.io.IOException
- Problems reading images from the
given directory or saving the cache
file (if caching is enabled)
java.lang.IllegalArgumentException
- The arguments submitted are wrong.
java.lang.ClassNotFoundException
- The cached objects are out-of-date
or are not this version's
face-space objectspublic double[] readImage(java.io.File f) throws java.io.FileNotFoundException, java.lang.IllegalArgumentException, java.io.IOException
java.io.FileNotFoundException
java.lang.IllegalArgumentException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |