| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectj2d.face.FaceBundle
public class FaceBundle
The face-space bundle generated by EigenFaceComputation.
 This bundle has all the relevant information to try to match an image
 The computation to be done (to find the submitted image in this
 bundles face-space) is q?uite fast.
 For more about the algorithm, consult (
 http://www.cs.ucsb.edu/~mturk/Papers/mturk-CVPR91.pdf">
 
 http://www.cs.ucsb.edu/~mturk/Papers/mturk-CVPR91.pdf)
 Each FaceBundle contains
 sixteen images and their identifying string.
 
NOTE: This object is serializable, therefere its possible
 to cache these face-spaces thus eliminating the computation process
 in EigenFaceComputation.
| Field Summary | |
|---|---|
|  int | lengthThe length of the vector-images stored in the face-space bundle. | 
| Constructor Summary | |
|---|---|
| FaceBundle(double[] avgF,
           double[][] wk,
           double[][] eigV,
           java.lang.String[] files)The face-space object containing: An average face array. | |
| Method Summary | |
|---|---|
|  void | clearFace()Clear the submitted image from the face-space object. | 
|  int | compareTo(java.lang.Object o)Compare this face-space bundle to another. | 
|  double | distance()The distance of how far away the submitted image is in this face-space object. | 
|  java.lang.String | getID()The ID of the submitted image in this face-space object. | 
|  java.lang.String[] | getNames()All the names of the images in this face-space. | 
|  void | submitFace(byte[] face)Submit an image of matching against the face-space. | 
|  void | submitFace(double[] face)Submit an image of matching against the face-space. | 
|  void | submitFace(int[] face)Submit an image of matching against the face-space. | 
|  java.lang.String | toString()Get a string representation. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int length
length will be considered).
| Constructor Detail | 
|---|
public FaceBundle(double[] avgF,
                  double[][] wk,
                  double[][] eigV,
                  java.lang.String[] files)
avgF - Average face (used to normalize the image to be matched against)wk - The eigenface componenets (projected onto the eigenspace)eigV - The eigenspace (onto which the matched image will be projected too)files - A String array representing each of the sixteen images represented
  by this face-space.| Method Detail | 
|---|
public void submitFace(byte[] face)
distance() and getID().
- 
 
- 
- Parameters:
- face- The vector-array of the image. The image must be off length
 
public void submitFace(int[] face)
distance() and getID().
- 
 
- 
- Parameters:
- face- The vector-array of the image. The image must be off length
 
public void submitFace(double[] face)
distance() and getID().
- 
 
- 
- Parameters:
- face- The vector-array of the image.
 The image must be off length
 
public void clearFace()
public double distance()
getID() for the name
 of the image that it was most near too.
Double.MAX_VALUEpublic java.lang.String getID()
public java.lang.String[] getNames()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||