資源簡介
利用高斯函數對彩色圖像求導,對梯度幅值進行非極大值抑制,找到邊緣像素

代碼片段和文件信息
function?varargout?=?MyDIP(varargin)
%?MYDIP?M-file?for?MyDIP.fig
%??????MYDIP?by?itself?creates?a?new?MYDIP?or?raises?the?existing
%??????singleton*.
%
%??????H?=?MYDIP?returns?the?handle?to?a?new?MYDIP?or?the?handle?to
%??????the?existing?singleton*.
%
%??????MYDIP(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?MYDIP.M?with?the?given?input?arguments.
%
%??????MYDIP(‘Property‘‘Value‘...)?creates?a?new?MYDIP?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?MyDIP_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?MyDIP_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
%?Copyright?2002-2003?The?MathWorks?Inc.
%?Edit?the?above?text?to?modify?the?response?to?help?MyDIP
%?Last?Modified?by?GUIDE?v2.5?18-Nov-2006?20:20:07
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@MyDIP_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@MyDIP_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?MyDIP?is?made?visible.
function?MyDIP_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?MyDIP?(see?VARARGIN)
%?Choose?default?command?line?output?for?MyDIP
handles.output?=?hobject;
handles.flag=logical(0);
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?MyDIP?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?MyDIP_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
%?--------------------------------------------------------------------
function?openfile_Callback(hobject?eventdata?hand
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-06?15:13??57393152MATLAB_code_of_image_processing\
?????目錄???????????0??2018-06-06?15:13??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\
?????文件???????66616??2000-07-25?19:18??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\Couple.bmp
?????文件???????70356??2006-11-19?10:08??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\MyDIP.asv
?????文件???????11650??2006-11-22?17:06??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\MyDIP.fig
?????文件???????70408??2006-11-22?17:11??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\MyDIP.m
?????文件???????66616??2006-10-10?11:09??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\NBA.bmp
?????文件???????66616??2006-10-10?11:09??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\NBA2001_01b_t.bmp
?????文件???????52280??2006-11-05?17:34??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\NBA200256.bmp
?????文件???????62976??2007-02-04?11:30??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\Thumbs.db
?????文件???????54682??2006-11-19?10:21??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\Water.jpg
?????文件???????66616??2006-03-19?22:38??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\girl.bmp
?????文件???????66616??2006-11-05?14:04??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\lena.bmp
?????文件???????17464??2006-11-05?17:33??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\lena128.bmp
?????文件???????41080??2006-11-05?17:35??57393152MATLAB_code_of_image_processing\MATLAB算法演示程序\lena200.bmp
評論
共有 條評論