pcadist_final.m

来自「matlab图像处理工具相」· M 代码 · 共 16 行

M
16
字号
function tst=pcadist_final(tst,vec,m,S)
% This function used to project the testing image on the features (PCA) space 
% Where     t: Is the testing image in double type
%           x: Is the feature matrix
%           vec: Is the eigen vectors
%           m: Is the mean of the data
%           S: Is the scale of the testing image


tst=imresize(tst,[S,S]);
tst=reshape(tst,S*S,1);
tst=double(tst);
tst=tst-m;
tst=vec'*tst;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?