I have a \"training set\" of images. I have formed the \'Eigenspace\'. Now i need to label the projections to train the SVM. The projections of \"face 1\" to the Eigenspace
label = ones(N,1);% N samples in total, +1 represents face 1
for i=1:N
% For each face image, you run
[signals,V] = pca2(data); % ith data
if .... % other faces than face 1
label(i) = -1;
end
face(i,:) = reshape(signals,1,[]);
end
model = svmtrain(label,face);