资 源 简 介
% A sample script, which shows the usage of functions, included in
% FLD-based face recognition system (Fisherface method)
%
% See also: CREATEDATABASE, FISHERFACECORE, RECOGNITION
% Original version by Amir Hossein Omidvarnia, October 2007
%
clear all
clc
close all
% You can customize and fix initial directory paths
TrainDatabasePath = uigetdir(strcat(matlabroot,"work"), "Select training database path" );
TestDatabasePath = uigetdir(strcat(matlabroot,"work"), "Select test database path");
prompt = {"Enter test image name (a number between 1 to 10):"};
dlg_title = "Input of FLD-Based Face Recognition System";
num_lines= 1;
def = {"1"};
TestImage = inputdlg(prompt,dlg_title,num_lines,def);
TestImage = strcat(TestDatabasePath,"",char(TestImage),".jpg");