资 源 简 介
% A sample script, which shows the usage of functions, included in
% PCA-based face recognition system (Eigenface method)
%
% See also: CREATEDATABASE, EIGENFACECORE, RECOGNITION
% Original version by Amir Hossein Omidvarnia, October 2007
clear all
clc
close all
% You can customize and fix initial directory paths 設定檔案途徑
TrainDatabasePath = uigetdir("D:Program FilesMATLABR2006awork", "Select training database path" );
TestDatabasePath = uigetdir("D:Program FilesMATLABR2006awork", "Select test database path");
prompt = {"Enter test image name (a number between 1 to 10):"};
dlg_title = "Input of PCA-Based Face Recognition System";
num_lines= 1;
def = {"1"};
TestImage = inputdlg(prompt,dlg_title,num_lines,def);
TestI