文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > matlab实用程序百例3
侵权投诉

matlab实用程序百例3

matlab图像处理程序





实例72:图像分析(1)

h0=figure('toolbar','none',...
'position',[198 56 350 468],...
'name','实例72');
h1=axes('parent',h0,...
'position',[0.25 0.45 0.5 0.5],...
'visible','off');
I=imread('rice.tif');
imshow(I)
k=0;
b1=uicontrol('parent',h0,...
'units','points',...
'tag','b1',...
'style','pushbutton',...
'string','图像轮廓图',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[20 100 60 20],...
'callback',[...
'cla,',...
'k=1;,',...
'I=imread(''rice.tif'');,',...
'imcontour(I)']);
b2=uicontrol('parent',h0,...
'units','points',...
'tag','b2',...
'style','pushbutton',...
'string','SOBEL边界图',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[100 100 60 20],...
'callback',[...
'cla,',...
'k=2;,',...
'I=imread(''rice.tif'');,',...
'BW=edge(I,''sobel'');,',...
'imshow(BW)']);
b3=uicontrol('parent',h0,...
'units','points',...
'tag','b3',...
'style','pushbutton',...
'string','CANNY边界图',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[180 100 60 20],...
'callback',[...
'cla,',...
'k=3;,',...
'I=imread(''rice.tif'');,',...
'BW=edge(I,''canny'');,',...
'imshow(BW)']);
b4=uicontrol('parent',h0,...
'units','points',...
'tag','b4',...
'style','pushbutton',...
'string','灰度调整',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[20 50 60 20],...
'callback',[...
'cla,',...
'k=4;,',...
'I=imread(''rice.tif'');,',...
'J=imadjust(I,[0.15 0.9],[0 1]);,',...
'imshow(J,64)']);
b5=uicontrol('parent',h0,...
'units','points',...
'tag','b5',...
'style','pushbutton',...
'string','图像柱状图',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[180 50 60 20],...
'callback',[...
'if k==0,',...
'figure,',...
'imhist(I,64),',...
'end,',...
'if k==1,',...
'imhist(I,64),',...
'end,',...
'if k==2,',...
'imhist(BW,64),',...
'end,',...
'if k==3,',...
'imhist(BW,64),',...
'end,',...
'if k==4,',...
'imhist(J),',...
'end']);
b6=uicontrol('parent',h0,...
'units','points',...
'tag','b6',...
'style','pushbutton',...
'string','关闭',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[100 50 60 20],...
'callback','close');
实例73:过滤图像

h0=figure('toolbar','none',...
'position',[198 56 350 468],...
'name','实例73');
h1=axes('parent',h0,...
'position',[0.25 0.45 0.5 0.5],...
'visible','off');
I=imread('eight.tif');
imshow(I)
u1=uimenu('parent',h0,...
'tag','u1',...
'label','添加噪声',...
'backgroundcolor',[0.75 0.75

第1页

你可能喜欢

热门文档

相关文档

  • MATLAB实用程序百例3

    MATLAB实用程序百例3 MATLAB实用程序MATLAB实用程序隐藏>> 实例72:图像分析(1) h0=figure('toolbar','none',... 'position',[198 56 350 468],... '...

  • matlab实用程序百例2(1-3)

    matlab实用程序百例2(1-3)_IT/计算机_专业资料。matlab实用程序百例2(1-3)实例47:曲线标记 h0=figure('toolbar','none',... 'position',[198 56 408 ...

  • matlab实用程序百例2

    matlab实用程序百例3(1-... 23页 免费 MATLAB实用程序百例 第一... 13页...(2,2,3) surf(x,y,z) xlabel('X-axis') ylabel('Y-axis') zlabel('...

  • matlab实用程序百例1

    matlab实用程序百例1matlab实用程序百例1隐藏>> 1-32是:图形应用篇 33-66是:...('\leftarrow第三季度销量') gtext('\leftarrow第四季度销量') xlabel('年'...

  • matlab实用程序百例

    matlab实用程序百例_工学_高等教育_教育专区。matlab 实用程序百例电子科技大学...('三角函数'); 实例 3:图形的叠加 function shili03 h0=figure('toolbar','...

  • matlab实用程序百例

    matlab 实用程序百例 实例 1:三角函数曲线 : function shili01 h0=figure('...(2,2,4) x=-3:0.2:3; y=exp(-x.*x); barh(x,y) title('...

  • MATLAB实用程序百例

    MATLAB实用程序百例 实例1:三角函数曲线(1) function shili01 h0=figure('...(2,2,4) x=-3:0.2:3; y=exp(-x.*x); barh(x,y) title('...

  • 数学建模案例MATLAB实用程序百例

    MATLAB实用程序百例 实例1:三角函数曲线(1) function shili01 h0=figure('...(2,2,4) x=-3:0.2:3; y=exp(-x.*x); barh(x,y) title('...

  • matlab实用程序百例目录

    MATLAB实用程序百例 第三... 22页 1下载券 MATLAB实用程序百例 第一... 13页 1下载券 matlab实用程序百例-图形... 20页 免费 matlab实用程序百例-图形......

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email