Re: Is it error when use PCA to recognize trained face image. Why?



Bo I am using the same code....for PCA and then trying to
archive the same....to do a face recognition using
that....could you please....let me know whether you were
able to do this.....if so...would you be kind enough to
share it with me? (ruwanb(nospam)@gmail.com)

Thanks in advance.....




"Bo Dai" <db804@xxxxxxx> wrote in message
<fvqu86$q7r$1@xxxxxxxxxxxxxxxxxx>...
Hi, All,

I used the codes in http://www.cs.ait.ac.th/~mdailey to make
pca eigfaces. And the train images are att face database.

[images,w,h]=load_images('AttFace.dat');
[Vecs,Vals,Psi] = pc_evectors(images,30);
Proj = Vecs' * images;

Then I use one of the train image(s1\1.pgm) to calculate the
distance between the eigvectors as follows:


nstr='att_faces\s1\1.pgm';
f=imread(nstr);
f2=reshape(f,m,1);

Vecs=double(Vecs);
f2=double(f2);
Psi=double(Psi);
%get the weights wk of the eigfaces to the new image
npro=Vecs'*(f2-Psi)

%m1 is the size of the image, m2 is the number of the train
%images
[m1,m2]=size(Proj)

for i=1:m2

dist(i)= norm(Proj(:,i)-npro(:));

end;
[dist_min2,index2]=min(dist)

If it's right, index2 should be 1, but the result is 22.

I don't know why.
Can you help me ?



.



Relevant Pages

  • Re: connection between preselecting parts of information with high variance and PCA
    ... PCA before and after preof features based on variance in ... connection that PCA also selects features through measuring the ... images will decorrelate the data. ... eigenvectors are linear combinations of the original ...
    (sci.image.processing)
  • Re: ANN Toolbox: train/adapt issue
    ... pixel components of multiple JPEG images. ... For example, let there be 50 training images, each of them being ... Therefore I decided to train the network by providing it images as ...
    (comp.soft-sys.matlab)
  • Re: Google Earth: new imagery: derailed freight?
    ... >> It is eitherthe same train or a similar train over two seperate ... The individual photos are not all taken ... The source images are taken by a rotating camera which takes ... > shots in all directions. ...
    (uk.railway)
  • Re: connection between preselecting parts of information with high variance and PCA
    ... Loeve's transform or as we call it - PCA (Principal Component ... Application area - Face Recognition. ... The idea is that eigenvectors of the covariance matrix of the set of ... images will decorrelate the data. ...
    (sci.image.processing)
  • Re: Trains on Google Earth Street View
    ... level crossing and the train has gone..... ... All the images as you ... "travel" along the road form a contiguous sequence except one, ... the silver-grey car following the Google car vanishes, ...
    (uk.railway)