function varargout = faceCore(varargin)
% FACECORE M-file for faceCore.fig
% FACECORE, by itself, creates a new FACECORE or raises the existing
% singleton*.
%
% H = FACECORE returns the handle to a new FACECORE or the handle to
% the existing singleton*.
%
% FACECORE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in FACECORE.M with the given input arguments.
%
% FACECORE('Property','Value',...) creates a new FACECORE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before faceCore_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to faceCore_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Copyright 2002-2003 The MathWorks, Inc.
% Edit the above text to modify the response to help faceCore
% Last Modified by GUIDE v2.5 28-May-2009 10:21:26
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @faceCore_OpeningFcn, ...
'gui_OutputFcn', @faceCore_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before faceCore is made visible.
function faceCore_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to faceCore (see VARARGIN)
% Choose default command line output for faceCore
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes faceCore wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = faceCore_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global TrainDatabasePath ;
TrainDatabasePath = uigetdir(strcat(matlabroot,'\work'), '训练库路径选择...' );
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global TestDatabasePath;
TestDatabasePath = uigetdir(strcat(matlabroot,'\work'), '测试库路径选择...');
% --- Executes on button press in pushbutton3.
%function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%[filename,pathname]=uigetfile({'*.jpg';'*.bmp'},'');
%str=[pathname filename];
%im=imread(str);
%axes(handles.axes1);
%imshow(im);
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global TrainDatabasePath ;
global TestDatabasePath;
global T;
T = CreateDatabase(TrainDatabasePath);
%[m V_PCA V_Fisher ProjectedImages_Fisher] = FisherfaceCore(T);
% --- Executes on button press in pushbutton5.
function pushbutton9_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global im;
[filename,pathname]=uigetfile({'*.jpg';'*.bmp'},'选择测试图片...');
str=[pathname filename];
im=imread(str);
axes(handles.axes1);
imshow(im);
% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%T = CreateDatabase(TrainDatabasePath);
global T;
global im;
global TrainDatabasePath ;
[m V_PCA V_Fisher ProjectedImages_Fisher] = FisherfaceCore(T);
OutputName = Recognition(im, m, V_PCA, V_Fisher, ProjectedImages_Fisher);
SelectedImage = strcat(TrainDatabasePath,'\',OutputName);
SelectedImage = imread(SelectedImage);
axes(handles.axes2);
imshow(SelectedImage);
%title('Equivalent Image');
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear all;
clc
close(gcf);
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【达摩老生出品,必属精品,亲测校正,质量保证】 资源名:费舍尔线性判别人脸识别系统(有GUI,推荐,需要先训练,执行faceCore.m)_matlab 资源类型:matlab项目全套源码 源码说明: 全部项目源码都是经过测试校正后百分百成功运行的,如果您下载后不能运行可联系我进行指导或者更换。 适合人群:新手及有一定经验的开发人员
资源推荐
资源详情
资源评论
收起资源包目录
费舍尔线性判别人脸识别系统(有GUI,推荐,需要先训练,执行faceCore.m)_matlab.rar (41个子文件)
基于FISHER线性判决的人脸识别系统,GUI界面,自带训练库和测试库
faceRecognition
faceRecognition
TestDatabase
8.jpg 7KB
2.jpg 6KB
1.jpg 6KB
6.jpg 6KB
13.JPG 20KB
未标题-1.psd 441KB
3.jpg 6KB
5.jpg 4KB
11.jpg 21KB
4.jpg 6KB
10.jpg 7KB
Thumbs.db 8KB
9.jpg 5KB
12.JPG 21KB
7.jpg 4KB
faceCore.fig 3KB
faceCore.m 6KB
FisherfaceCore.m 5KB
CreateDatabase.m 2KB
TrainDatabase
8.jpg 6KB
15.jpg 7KB
14.jpg 4KB
2.jpg 6KB
1.jpg 6KB
6.jpg 6KB
3.jpg 6KB
5.jpg 6KB
19.jpg 7KB
11.jpg 6KB
4.jpg 6KB
10.jpg 4KB
17.jpg 5KB
18.jpg 5KB
13.jpg 4KB
16.jpg 7KB
Thumbs.db 8KB
12.jpg 6KB
9.jpg 4KB
20.jpg 7KB
7.jpg 6KB
Recognition.m 2KB
共 41 条
- 1
资源评论
- m0_750348432023-04-27发现一个宝藏资源,资源有很高的参考价值,赶紧学起来~
阿里matlab建模师
- 粉丝: 3233
- 资源: 2782
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功