資源簡介
# 數(shù)字圖像處理——基于GUI設(shè)計
對圖像進(jìn)行打開,保存,退出系統(tǒng),并且能實現(xiàn)放大,縮小,裁剪,旋轉(zhuǎn),反色,銳化,初始化,添加濾波、噪聲、圖像的轉(zhuǎn)換包括原圖到二值、原圖到灰度、灰度到二值,圖像的直方圖顯示等
對圖像進(jìn)行打開,保存,退出系統(tǒng),并且能實現(xiàn)放大,縮小,裁剪,旋轉(zhuǎn),反色,銳化,初始化,添加濾波、噪聲、圖像的轉(zhuǎn)換包括原圖到二值、原圖到灰度、灰度到二值,圖像的直方圖顯示等

代碼片段和文件信息
function?varargout?=?untitled(varargin)
%?UNtitleD?MATLAB?code?for?untitled.fig
%??????UNtitleD?by?itself?creates?a?new?UNtitleD?or?raises?the?existing
%??????singleton*.
%
%??????H?=?UNtitleD?returns?the?handle?to?a?new?UNtitleD?or?the?handle?to
%??????the?existing?singleton*.
%
%??????UNtitleD(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?UNtitleD.M?with?the?given?input?arguments.
%
%??????UNtitleD(‘Property‘‘Value‘...)?creates?a?new?UNtitleD?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?untitled_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?untitled_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?untitled
%?Last?Modified?by?GUIDE?v2.5?20-Nov-2019?18:51:12
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@untitled_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@untitled_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?untitled?is?made?visible.
function?untitled_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?untitled?(see?VARARGIN)
handles.output?=?hobject;
%背景
ha=axes(‘units‘‘normalized‘‘pos‘[0?0?1?1]);
?uistack(ha‘down‘);
?ii=imread(‘C:\Users\admin\Documents\MATLAB\圖片\beijing.jpg‘);
%設(shè)置程序的背景圖為beijing1.jpg
?image(ii);
?colormap?gray
?set(ha‘handlevisibility‘‘off‘‘visible‘‘off‘);
%?Choose?default?command?line?output?for?untitled
guidata(hobject?handles);
%?UIWAIT?makes?untitled?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?untitled_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
%?------------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-12-25?15:12??數(shù)字圖像處理大作業(yè)\
?????文件???????11606??2019-12-28?16:59??數(shù)字圖像處理大作業(yè)\unti
?????文件???????28253??2019-12-28?16:59??數(shù)字圖像處理大作業(yè)\unti
?????目錄???????????0??2019-11-20?20:13??數(shù)字圖像處理大作業(yè)\圖片\
?????文件???????20916??2019-11-20?19:15??數(shù)字圖像處理大作業(yè)\圖片\0000.jpg
?????文件?????1092380??2002-08-27?02:51??數(shù)字圖像處理大作業(yè)\圖片\CFig0.tif
?????文件??????554554??2003-05-03?13:53??數(shù)字圖像處理大作業(yè)\圖片\CFig1.png
?????文件?????1166148??2002-10-13?08:47??數(shù)字圖像處理大作業(yè)\圖片\CFig2.png
?????文件??????303783??2012-05-05?22:42??數(shù)字圖像處理大作業(yè)\圖片\CFig3.png
?????文件??????626535??2003-05-03?13:53??數(shù)字圖像處理大作業(yè)\圖片\CFig4.png
?????文件???????27130??2001-03-01?09:52??數(shù)字圖像處理大作業(yè)\圖片\CFig5.jpg
?????文件???????95162??2000-12-04?13:57??數(shù)字圖像處理大作業(yè)\圖片\CFig6.tif
?????文件??????164150??2016-07-20?08:37??數(shù)字圖像處理大作業(yè)\圖片\CFig7.png
?????文件???????44638??2009-11-09?11:25??數(shù)字圖像處理大作業(yè)\圖片\CFig8.png
?????文件?????1516120??2011-12-11?02:43??數(shù)字圖像處理大作業(yè)\圖片\CFig9.tif
?????文件???????65126??2008-10-30?21:15??數(shù)字圖像處理大作業(yè)\圖片\Fig0.tif
?????文件??????360310??2003-05-21?17:22??數(shù)字圖像處理大作業(yè)\圖片\Fig1.tif
?????文件??????264806??2003-05-21?17:24??數(shù)字圖像處理大作業(yè)\圖片\Fig2.tif
?????文件??????160358??2008-10-17?18:15??數(shù)字圖像處理大作業(yè)\圖片\Fig3.tif
?????文件??????263222??2018-11-28?15:00??數(shù)字圖像處理大作業(yè)\圖片\Fig4.bmp
?????文件??????183950??2000-12-04?13:57??數(shù)字圖像處理大作業(yè)\圖片\Fig5.tif
?????文件??????230578??2000-12-04?13:58??數(shù)字圖像處理大作業(yè)\圖片\Fig6.tif
?????文件???????69004??2000-12-04?13:57??數(shù)字圖像處理大作業(yè)\圖片\Fig7.tif
?????文件??????342542??2006-04-11?10:56??數(shù)字圖像處理大作業(yè)\圖片\Fig8.tif
?????文件???????31028??2001-02-21?12:34??數(shù)字圖像處理大作業(yè)\圖片\Fig9.tif
?????文件??????117874??2019-11-14?10:38??數(shù)字圖像處理大作業(yè)\圖片\QQ??20191114103827.jpg
?????文件???????74634??2019-11-20?20:13??數(shù)字圖像處理大作業(yè)\圖片\beijing.jpg
?????文件??????517553??2019-12-28?17:23??數(shù)字圖像處理大作業(yè)\相關(guān)代碼及軟件制作說明.docx
評論
共有 條評論