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

基于MATLAB GUI数字图像的水果边缘检测方法研究

来源:用户分享 时间:2025/5/16 8:20:25 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

17 % 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 apple (see VARARGIN) % Choose default command line output for apple handles.output = hObject % Update handles structure guidata(hObject, handles);

% UIWAIT makes apple wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = apple_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 duqutuxiang_Callback(hObject, eventdata, handles) % hObject handle to duqutuxiang (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

global im;

[filename,pathname]=...

uigetfile({'*.*';'*.bmp';'*.tif';'*.png'},'select picture'); str=[pathname filename];

im=imread(str); % axes(handles.axes1); imshow(im); %

-------------------------------------------------------------------- function tuichu_Callback(hObject, eventdata, handles) % hObject handle to tuichu (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) clc;

clear all;

18 close(gcf);

%

-------------------------------------------------------------------- function huiduhua_Callback(hObject, eventdata, handles) % hObject handle to huiduhua (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global im; global a2;

a2=rgb2gray(im);

axes(handles.axes2); imshow(a2); figure; imhist(a2); %

-------------------------------------------------------------------- function zhifangtujunhenghua_Callback(hObject, eventdata, handles) % hObject handle to zhifangtujunhenghua (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global a2; global a4; a4=histeq(a2);

axes(handles.axes3); imshow(a4); figure; imhist(a4); %

-------------------------------------------------------------------- function zhongzhilvbo_Callback(hObject, eventdata, handles) % hObject handle to zhongzhilvbo (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global a4; global k1;

k6=medfilt2(a4,[3,3]); k5=medfilt2(k6,[3,3]); k4=medfilt2(k5,[3,3]); k3=medfilt2(k4,[3,3]); k2=medfilt2(k3,[3,3]); k1=medfilt2(k2,[3,3]);

19 axes(handles.axes4);

imshow(k1); %

-------------------------------------------------------------------- function wenjian_Callback(hObject, eventdata, handles) % hObject handle to wenjian (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

致 谢

在完成毕业设计的过程中我遇到了很多的问题,通过*老师和同学们的帮助,我最后还是很顺利的完成了我的论文,在这个炎热的夏天我即将迎来大学的毕业,所以这次的论文使我们最后的一个在校的任务,我还是很用心的,毕竟这也是我对大学四年的总结,最后我要真诚的感谢我的指导老师*,您对我们的帮助我们永远铭记,同时也要谢谢我的同学们,和你们一起讨论的时刻真的很充实。

基于MATLAB GUI数字图像的水果边缘检测方法研究.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5osg75od249sc9l3ppnv1xep036fj7019ei_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top