资源描述:
《基于某matlab地人脸识别源代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、functionvarargout=FR_Processed_histogram(varargin)%这种算法是基于直方图处理的方法%Thehistogramofimageiscalculatedandthenbinformationisdoneonthe%basisofmeanofsuccessivegraylevelsfrequencies.Thetrainingisdoneonoddimagesof40subjects(200imagesoutof400images)%Theresultsoftheimplementedalgorithmis99.75(reco
2、gnitionfailsonimagenumber4ofsubject17)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&&
3、ischar(varargin{1})14gui_State.gui_Callback=str2func(varargin{1});endifnargout[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-tobedefinedinafutureversionofMATLAB14%handlesstructurewithhandlesanduse
5、rdata(seeGUIDATA)%varargincommandlineargumentstoFR_Processed_histogram(seeVARARGIN)%ChoosedefaultcommandlineoutputforFR_Processed_histogramhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesFR_Processed_histogramwaitforuserresponse(seeUIRESUME)%uiwait(han
6、dles.figure1);globaltotal_subtrain_imgsub_imgmax_hist_levelbin_numform_bin_num;total_sub=40;train_img=200;14sub_img=10;max_hist_level=256;bin_num=9;form_bin_num=29;%--------------------------------------------------------------------------%---Outputsfromthisfunctionarereturnedtothecomma
7、ndline.functionvarargout=FR_Processed_histogram_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Getdefault