资源描述:
《基于matlab的人脸识别源代码.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、functionvarargout=FR_Processed_histogram(varargin)%这种算法是基于直方图处理的方法%Thehistogramofimageiscalculatedandthenbinformationisdoneonthe%basisofmeanofsuccessivegraylevelsfrequencies.Thetrainingisdoneonoddimagesof40subjects(200imagesoutof400images)%Theresultsoftheimplementedalgorithmis99.75(r
2、ecognitionfailsonimagenumber4ofsubject17)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',[]);ifna
3、rgin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});end最新可编辑word文档ifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%----------------------------------------------------------
4、----------------%---ExecutesjustbeforeFR_Processed_histogramismadevisible.functionFR_Processed_histogram_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructu
5、rewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoFR_Processed_histogram(seeVARARGIN)%ChoosedefaultcommandlineoutputforFR_Processed_histogramhandles.output=hObject;最新可编辑word文档%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesFR_Processed_histogramwaitforuse
6、rresponse(seeUIRESUME)%uiwait(handles.figure1);globaltotal_subtrain_imgsub_imgmax_hist_levelbin_numform_bin_num;total_sub=40;train_img=200;sub_img=10;max_hist_level=256;bin_num=9;form_bin_num=29;%--------------------------------------------------------------------------%---Outputsfro
7、mthisfunctionarereturnedtothecommandline.functionvarargout=FR_Processed_histogram_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);最新可编辑word文档%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithha
8、ndlesanduser