資源描述:
《數(shù)字圖像處理 阮秋琦 MATLAB源程序》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、%系統(tǒng)自動生成的創(chuàng)建對話框的代碼functionvarargout=myproject(varargin)%MYPROJECTM-fileformyproject.fig%MYPROJECT,byitself,createsanewMYPROJECTorraisestheexisting%singleton*.%%H=MYPROJECTreturnsthehandletoanewMYPROJECTorthehandleto%theexistingsingleton*.%%MYPROJECT('CALLBACK',hOb
2、ject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinMYPROJECT.Mwiththegiveninputarguments.%%MYPROJECT('Property','Value',...)createsanewMYPROJECTorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforemyproject_O
3、peningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtomyproject_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES
4、%Edittheabovetexttomodifytheresponsetohelpmyproject%LastModifiedbyGUIDEv2.507-Jun-200811:33:02%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@myproject_OpeningFcn,...'g
5、ui_OutputFcn',@myproject_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});
6、end%Endinitializationcode-DONOTEDIT%---Executesjustbeforemyprojectismadevisible.functionmyproject_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB
7、%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstomyproject(seeVARARGIN)%Choosedefaultcommandlineoutputformyprojecthandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesmyprojectwaitforuserresponse(see
8、UIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=myproject_OutputFcn(hObject,eventdata,handles)%varargoutcel