资源描述:
《数字图像处理阮秋琦MATLAB源程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、%系统自动生成的创建对话框的代码functionvarargout=myproject(varargin)%MYPROJECTM-fileformyproject.fig%MYPROJECT,byitself,createsanewMYPROJECTorraisestheexisting%singleton*.%%H=MYPROJECTreturnsthehandletoanewMYPROJECTorthehandleto%theexistingsingleton*.%%MYPROJECT('CALLBACK',hObject,eventData,hand
2、les,...)callsthelocal%functionnamedCALLBACKinMYPROJECT.Mwiththegiveninputarguments.%%MYPROJECT('Property'Value...)createsanewMYPROJECTorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforemyproject_OpeningFcngetscalled・An%unrecognizedprope
3、rtynameorinvalidvaluemakespropertyapplication%stop・Allinputsarepassedtomyproject_OpeningFcnviavarargin・%%*SeeGUIOptionsonGUIDE'SToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)J%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpmyproject%LastModi
4、fiedbyGUIDEv2.507-Jun-200811:33:02%Begininitializationcode-DONOTEDITgui_Singleton二1;gui_State=stnjct('gui_Name;mfilename,…'guLSingleton1,guLSingleton,・••°gui_OpeningFcn;@myproject_OpeningFcn,…^uLOutputFcn1,@myproject_OutputFcn,…,gui_LayoutFcn;[J,…"gui-Callback*,[]);ifnargin&&ischa
5、r(varargin{1})gui_State.gui_Callback=str2func(varargin}1));endifnargout[varargout{knargout}]=gui_mainfcn(gui_State,varargin{:));elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%■-Executesjustbeforemyprojectismadevisible・functionmyproject_OpeningFcn(hObjec
6、t,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstomyproject(seeVARARGIN)%Choosedefaultcommandlineoutpu
7、tformyprojecthandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesmyprojectwaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%-一Outputsfromthisfunctionarereturnedtothecommandline,functionvarargout=myproject_OutputFcn(hObject,eventdata,handles)%
8、varargoutcellarrayforreturningout