⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_denoising.m~

📁 matlab中进行人脸识别研究时用到的所有程序码路径的设置.
💻 M~
字号:
% Demonstration of image restoration on USPS database.%% Linear PCA and Kernel PCA models are learnt from files.%% Modification:% 5-may-2004, VF% 22-apr-2004, VF% == input files ======================kpca_filename = 'GreedyKpcaMoldeUsps5.mat';  % kpca modellpca_filename = 'LinearPCAModelUSPS.mat';       % linear PCA modelinput_data_file = '/home.dokt/xfrancv/data/usps_noisy';  % USPS % loading ...load(kpca_filename,'kpca_model');load(lpca_filename,'lpca_model');load(input_data_file);% get indices of examples to denoiseinx = [];for i=1:10,  tmp = find(tst.y == i);  inx = [inx, tmp(1) ];end% get noisy and ground truth numeralsnoisy_X = tst.X(:,inx);  gnd_X = tst.gnd_X(:,inx);% Kernel PCA denoisingkpca_X = kpimage( noisy_X, kpca_model);lpca_X = lpimage( noisy_X, lpca_model);% display resultsh=figure; set(h,'name','Denoised by greedy KPCA');showim( kpca_X);h=figure; set(h,'name','Denoised by linear PCA');showim( lpca_X);h=figure; set(h,'name','Ground truth');showim( gnd_X);h=figure; set(h,'name','Noisy');showim( noisy_X);

⌨️ 快捷键说明

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