資源簡介
MATLAB GUI 多界面
自己編寫的圖像處理軟件,MATLAB GUI 編程實(shí)現(xiàn),內(nèi)容簡單易懂。主要用來實(shí)現(xiàn)多界面調(diào)用,進(jìn)度條等功能的實(shí)現(xiàn)

代碼片段和文件信息
function?varargout?=?openjpg(varargin)
%?OPENJPG?M-file?for?openjpg.fig
%??????OPENJPG?by?itself?creates?a?new?OPENJPG?or?raises?the?existing
%??????singleton*.
%
%??????H?=?OPENJPG?returns?the?handle?to?a?new?OPENJPG?or?the?handle?to
%??????the?existing?singleton*.
%
%??????OPENJPG(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?OPENJPG.M?with?the?given?input?arguments.
%
%??????OPENJPG(‘Property‘‘Value‘...)?creates?a?new?OPENJPG?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?openjpg_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?openjpg_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Edit?the?above?text?to?modify?the?response?to?help?openjpg
%?Last?Modified?by?GUIDE?v2.5?20-Oct-2010?16:35:20
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@openjpg_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@openjpg_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?openjpg?is?made?visible.
function?openjpg_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?openjpg?(see?VARARGIN)
%?Choose?default?command?line?output?for?openjpg
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?openjpg?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
setappdata(handles.figure1?‘img‘?0);????????????????????????????????????%利用對象來存取變量(控件之間對數(shù)據(jù)的共享)(傳遞打開的圖像)
setappdata(handles.figure1?‘img2‘?0);????????????????????????????????????%利用對象來存取變量(控件之間對數(shù)據(jù)的共享)(傳遞打開的處理后圖像)
set(handles.slider1‘Value‘0.2);
set(handles.text2‘String‘‘灰度閾值選取:‘);
set(handles.axes1?‘Box‘?‘on‘);
set(handles.axes2?‘Box‘?‘on‘);
set(handles.axes3?‘Box‘?‘on‘);
set(handles.axes1‘xminortick‘‘off‘);
set(handles.axes1‘yminortick‘‘off‘);
set(handles.checkbox1‘Value‘0);
set(handles.checkbox2‘Value‘1);
set(handles.edit2‘Position‘[9.8?6.615?0.1?2]);
set(handles.edit1‘Position‘[9.8?6.615?100.2?2]);
set(handles.text6‘String‘‘處理程序尚未運(yùn)行‘);
s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6604??2010-10-20?15:47??自己練習(xí)\1.jpg
?????文件????1620054??2010-09-27?16:35??自己練習(xí)\123.bmp
?????文件??????16015??2010-10-20?17:30??自己練習(xí)\openjpg.fig
?????文件??????16463??2010-10-20?20:33??自己練習(xí)\openjpg.m
?????文件???????5779??2010-10-20?20:30??自己練習(xí)\openjpg_2.fig
?????文件???????8502??2010-10-20?20:26??自己練習(xí)\openjpg_2.m
?????目錄??????????0??2010-10-22?09:14??自己練習(xí)
-----------?---------??----------?-----??----
??????????????1673417????????????????????7
評論
共有 條評論