云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 基于MATLAB GUI数字图像的水果边缘检测方法研究

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

  • 62 次阅读
  • 3 次下载
  • 2025/6/25 21:58:57

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)

致 谢

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

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

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.ou

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com