Lesson 3/11 and moved eigenfaces folder from 29/9 lesson folder

This commit is contained in:
elvis
2023-11-05 21:28:07 +01:00
parent 17928b1f32
commit 33d89b6bba
183 changed files with 400609 additions and 0 deletions

13
11-3/eigenfaces/showyalefaces.m Executable file
View File

@ -0,0 +1,13 @@
X=readyalefaces_to_tensor;
%X = X(:,:,1:4,[12,9,6,1]); %filters out only some faces
[w h expr ind]=size(X);
clf;
for i=1:expr
for j=1:ind
subplot('position', [(i-1)/expr, (j-1)/ind,1/expr,1/ind]);
% subplot(expr,ind,j+(i-1)*ind);
imagesc(X(:,:,i,j));
colormap(gray);
end
end
set(findobj(gcf, 'type','axes'), 'Visible','off')