資源簡介
這個是一個簡單基于直方圖的人臉識別MATLAB程序,希望給學習圖像的初學者帶來幫助

代碼片段和文件信息
function?varargout?=?FR_Processed_histogram(varargin)
%The?algorithm?implements?the?Approach?of?histogram?based?processing?(apperance?based?approach)?
%The?histogram?of?image?is?calculated?and?then?bin?formation?is?done?on?the
%basis?of?mean?of?successive?graylevels?frequencies.?The?training?is?done?on?odd?images?of?40?subjects?(200?images?out?of?400?images)?
%The?results?of?the?implemented?algorithm?is?99.75?(recognition?fails?on?image?number?4?of?subject?17)
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@FR_Processed_histogram_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@FR_Processed_histogram_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?FR_Processed_histogram?is?made?visible.
function?FR_Processed_histogram_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?FR_Processed_histogram?(see?VARARGIN)
%?Choose?default?command?line?output?for?FR_Processed_histogram
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?FR_Processed_histogram?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
global?total_sub?train_img?sub_img?max_hist_level?bin_num?form_bin_num;
total_sub?=?40;
train_img?=?200;
sub_img?=?10;
max_hist_level?=?256;
bin_num?=?9;
form_bin_num?=?29;
%--------------------------------------------------------------------------
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?FR_Processed_histogram_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?train_button.??
function?train_button_Callback(hobject?eventdata?handles)
%?hobject????handle?to?train_button?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GU
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????24576??2008-12-12?14:53??Processed+histogram+ba
?????文件?????662310??2008-12-11?16:13??Processed+histogram+ba
?????文件???????6194??2008-12-12?14:04??Processed+histogram+ba
?????文件???????8989??2008-12-12?14:13??Processed+histogram+ba
?????文件??????33623??2008-12-11?16:16??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2004-07-28?08:01??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
????..A.SH.?????34304??2008-12-21?15:00??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
?????文件??????11382??2001-11-24?10:22??Processed+histogram+ba
............此處省略424個文件信息
評論
共有 條評論