77范文网 - 专业文章范例文档资料分享平台

基于matlab的图像形状与分类 - 毕业设计(7)

来源:网络收集 时间:2019-01-26 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

附录

致 谢

在论文完成之际,我心情无法平静。大学期间,尤其是毕业论文完成期间,有很多可敬的老师和同学给予了我无私帮助。对此我深怀感激。

首先感谢导师方旺盛老师从始至终的关心、指导和教诲。方旺盛老师追求真理、一丝不苟、严格律己、宽以待人的崇高品质对学生将是永远的鞭策。

本次毕业设计从课题选题、信息收集到论文的撰写都是在方旺盛老师全面、具体、耐心的指导下进行的。特别是方旺盛老师不厌其烦的指出设计中的不足及问题的解决方向,使我感受到方旺盛老师的渊博学识、敏锐思维和民主严谨的作风。论文写作过程中,从行文的用语到格式的规范,都力求完美。这里再次对方旺盛老师的无私付出表示深深的谢意。

其次在设计的过程中,感谢给予我帮助的同学们,在此对其表示感谢。 然后感谢信息工程系各位老师对我的培养和关心,感谢我的家人在大学期间对我的支持和鼓励。

附录:

论文中所用程序:

边缘提取及形状识别分类的主程序

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)在线全文阅读。

基于matlab的图像形状与分类 - 毕业设计(7).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/447452.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: