资源描述:
《基于matlab的人脸识别源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、functionvarargout=FR_Processed_histogram(varargin)%这种算法是基于直方图处理的方法%Thehistogramofimageiscalculatedandthenbinformationisdoneonthe%basisofmeanofsuccessivegraylevelsfrequencies.Thetrainingisdoneonoddimagesof40subjects(200imagesoutof400images)%Theresultsoftheimplementedalgorithmis99.75(recog
2、nitionfailsonimagenumber4ofsubject17)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',[]);ifnargin&&is
3、char(varargin{1})gui_State.gui_Callback=str2func(varargin{1});end13ifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%--------------------------------------------------------------------------%---E
4、xecutesjustbeforeFR_Processed_histogramismadevisible.functionFR_Processed_histogram_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(
5、seeGUIDATA)%varargincommandlineargumentsto13FR_Processed_histogram(seeVARARGIN)%ChoosedefaultcommandlineoutputforFR_Processed_histogramhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesFR_Processed_histogramwaitforuserresponse(seeUIRESUME)%uiwait(handles.
6、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;%------------------------------------------------------13--------------------%---Outputsfromthisfunctionarereturnedtothecommandline
7、.functionvarargout=FR_Processed_histogram_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Getdefault