?? test.m
字號:
function y=test(path,A,mx,facey) %測試(輸入b庫中圖)
%取得人臉并堆疊
f=getFacePile(path);
%KL變換
f=A*(f-mx);
%compare
L=200;
d=zeros(1,L);
for i=1:L
d(i)=norm(f-facey(:,i));
end
%排序
[Y I]=sort(d);
%輸出原圖
imshow(path);
figure;
%輸出前三張
imshow(getpicture(I(1)));
figure;
imshow(getpicture(I(2)));
%figure;
%imshow(getpicture(I(3)));
%figure;
%imshow(getpicture(I(4)));
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -