|
||||||||||
| 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. |
java.lang.String |
checkAgainstImage(java.awt.image.BufferedImage bufferedImage)
|
ImageDistances |
getImageDistances(java.io.File dir,
java.awt.image.BufferedImage bi)
|
void |
readFaceBundles(java.io.File rootDir)
Construct the face-spaces from the given directory. |
double[] |
readImage(java.awt.image.BufferedImage bi)
|
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.IOException
java.io.IOException
public java.lang.String checkAgainstImage(java.awt.image.BufferedImage bufferedImage)
throws java.io.IOException
java.io.IOException
public void readFaceBundles(java.io.File rootDir)
throws 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 objects
public ImageDistances getImageDistances(java.io.File dir,
java.awt.image.BufferedImage bi)
throws java.io.IOException
java.io.IOExceptionpublic double[] readImage(java.awt.image.BufferedImage bi)
public double[] readImage(java.io.File f)
throws java.lang.IllegalArgumentException,
java.io.IOException
java.lang.IllegalArgumentException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||