資源簡(jiǎn)介
建立了GUI界面,五種經(jīng)典的邊緣檢測(cè)算子,包括Roberts算子,Sobel算子,Canny算子,Prewitt算子,LOG算法。利用MATLAB系統(tǒng)所提供的相關(guān)函數(shù),分別用這幾種算子對(duì)同一副圖像進(jìn)行處理,在MATLAB2014a版本下運(yùn)行完全正確

代碼片段和文件信息
function?varargout?=?main_trans(varargin)
%?MAIN_TRANS?MATLAB?code?for?main_trans.fig
%??????MAIN_TRANS?by?itself?creates?a?new?MAIN_TRANS?or?raises?the?existing
%??????singleton*.
%
%??????H?=?MAIN_TRANS?returns?the?handle?to?a?new?MAIN_TRANS?or?the?handle?to
%??????the?existing?singleton*.
%
%??????MAIN_TRANS(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?MAIN_TRANS.M?with?the?given?input?arguments.
%
%??????MAIN_TRANS(‘Property‘‘Value‘...)?creates?a?new?MAIN_TRANS?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?main_trans_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?main_trans_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?main_trans
%?Last?Modified?by?GUIDE?v2.5?15-Mar-2019?23:27:14
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@main_trans_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@main_trans_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?main_trans?is?made?visible.
function?main_trans_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?main_trans?(see?VARARGIN)
%?Choose?default?command?line?output?for?main_trans
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?main_trans?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?main_trans_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;
%?---?Executes?on?selection?change?in?popupmenu1.
function?popupmenu1_Callback(hobject?eventdata?handles)
%?hobject????handle?to?popupmenu1?(see?GCBO
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????41141??2012-03-16?21:44??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\main_trans.fig
?????文件??????10748??2012-03-16?21:56??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\main_trans.m
?????文件?????600767??2013-05-01?22:08??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpg
?????文件?????743486??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpgcanny檢測(cè).bmp
?????文件????5948470??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpgDCT變換.bmp
?????文件?????743486??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpgsobel檢測(cè).bmp
?????文件???17842230??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpg偽彩色.bmp
?????文件????5948470??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真\pick_flower.jpg均值濾波.bmp
?????目錄??????????0??2019-04-19?16:58??基于MATLAB的圖像邊緣檢測(cè)算法的仿真
-----------?---------??----------?-----??----
?????????????31878798????????????????????9
評(píng)論
共有 條評(píng)論