资源描述:
《基于MATLAB的QR二维码解码技术的程序.docx》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、functionvarargout=QRMain(varargin)%QRMAINMATLABcodeforQRMain.fig%QRMAIN,byitself,createsanewQRMAINorraisestheexisting%singleton*.%%H=QRMAINreturnsthehandletoanewQRMAINorthehandleto%theexistingsingleton*.%%QRMAIN('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinQRMAIN.Mwi
2、ththegiveninputarguments.%%QRMAIN('Property','Value',...)createsanewQRMAINorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeQRMain_OpeningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.AllinputsarepassedtoQRMain_Openin
3、gFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%EdittheabovetexttomodifytheresponsetohelpQRMain%LastModifiedbyGUIDEv2.511-Apr-201720:19:20%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Na
4、me',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@QRMain_OpeningFcn,...'gui_OutputFcn',@QRMain_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,va
5、rargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---ExecutesjustbeforeQRMainismadevisible.functionQRMain_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionof
6、MATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoQRMain(seeVARARGIN)%ChoosedefaultcommandlineoutputforQRMainhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesQRMainwaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Out
7、putsfromthisfunctionarereturnedtothecommandline.functionvarargout=QRMain_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatares