附录
致 谢
在论文完成之际,我心情无法平静。大学期间,尤其是毕业论文完成期间,有很多可敬的老师和同学给予了我无私帮助。对此我深怀感激。
首先感谢导师方旺盛老师从始至终的关心、指导和教诲。方旺盛老师追求真理、一丝不苟、严格律己、宽以待人的崇高品质对学生将是永远的鞭策。
本次毕业设计从课题选题、信息收集到论文的撰写都是在方旺盛老师全面、具体、耐心的指导下进行的。特别是方旺盛老师不厌其烦的指出设计中的不足及问题的解决方向,使我感受到方旺盛老师的渊博学识、敏锐思维和民主严谨的作风。论文写作过程中,从行文的用语到格式的规范,都力求完美。这里再次对方旺盛老师的无私付出表示深深的谢意。
其次在设计的过程中,感谢给予我帮助的同学们,在此对其表示感谢。 然后感谢信息工程系各位老师对我的培养和关心,感谢我的家人在大学期间对我的支持和鼓励。
附录:
论文中所用程序:
边缘提取及形状识别分类的主程序
function varargout = chuongtrinhnhandang(varargin)
% CHUONGTRINHNHANDANG M-file for chuongtrinhnhandang.fig % CHUONGTRINHNHANDANG, by itself, creates a new CHUONGTRINHNHANDANG or raises the existing
% singleton*. %
% H = CHUONGTRINHNHANDANG returns the handle to a new CHUONGTRINHNHANDANG or the handle to
% the existing singleton*. %
27
附录
%
CHUONGTRINHNHANDANG('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in CHUONGTRINHNHANDANG.M with the given input arguments.
%
% CHUONGTRINHNHANDANG('Property','Value',...) creates a new CHUONGTRINHNHANDANG or raises the
% existing singleton*. Starting from the left, property value pairs are % applied to the GUI before chuongtrinhnhandang_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to chuongtrinhnhandang_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose \allows only one
% instance to run (singleton)\%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help chuongtrinhnhandang
% Last Modified by GUIDE v2.5 16-May-2008 22:19:38
% Begin initialization code - DO NOT EDIT gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @chuongtrinhnhandang_OpeningFcn, ...
'gui_OutputFcn', @chuongtrinhnhandang_OutputFcn, ...
28
附录
'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 chuongtrinhnhandang is made visible. function 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 chuongtrinhnhandang (see VARARGIN)
% Choose default command line output for chuongtrinhnhandang handles.output = hObject;
% Update handles structure guidata(hObject, handles);
% UIWAIT makes chuongtrinhnhandang wait for user response (see UIRESUME)
% uiwait(handles.figure1);
chuongtrinhnhandang_OpeningFcn(hObject, eventdata, handles,
29
附录
% --- Outputs from this function are returned to the command line.
function varargout = chuongtrinhnhandang_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 button press in Load_Image.
function Load_Image_Callback(hObject, eventdata, handles)
[filename, pathname] = uigetfile({'*.bmp';'*.jpg';'*.gif';'*.*'}, 'Pick an Image File');
S = imread([pathname,filename]); axes(handles.axes1); imshow(S);
handles.S = S;
guidata(hObject, handles);
% hObject handle to Load_Image (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in Edge_Detection.
function Edge_Detection_Callback(hObject, eventdata, handles) b=get(handles.edit1,'String'); S = handles.S; axes(handles.axes2); a=rgb2gray(S);
30
附录
bw=edge(a,b);
bw = bwareaopen(bw,30); se = strel('disk',2); bw = imclose(bw,se); bw = imfill(bw,'holes'); imshow(bw); handles.bw = bw;
% hObject handle to Edge_Detection (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in Recognize.
function Recognize_Callback(hObject, eventdata, handles) global i;
b=get(handles.edit1,'String'); S = handles.S; axes(handles.axes3); format long; a=rgb2gray(S); bw=edge(a,b);
bw = bwareaopen(bw,30); se = strel('disk',2); bw = imclose(bw,se); bw = imfill(bw,'holes'); L = bwlabel(bw);
s = regionprops(L, 'centroid'); dt = regionprops(L, 'area'); dim = size(s);
BW_filled = imfill(bw,'holes'); boundaries = bwboundaries(BW_filled); imshow(S); hold on;
31
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库基于matlab的图像形状与分类 - 毕业设计(7)在线全文阅读。
相关推荐: