資源描述:
《數(shù)字圖像處理阮秋琦MATLAB源程序》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、%系統(tǒng)自動(dòng)生成的創(chuàng)建對話框的代碼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