




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验三 图像形态学处理 一 实验目的及要求 1 利用 MATLAB 研究二值形态学图像处理常用算法 2 掌握 MATLAB 形态学图像处理基本操作函数的使用方法 3 了了解形态学的基本应用 二 二 实验内容 一 研究以下程序 分析程序功能 输入执行各命令行 认真观察命令 执行的结果 熟悉程序中所使用函数的调用方法 改变有关参数 观察试验结 果 1 1 膨胀与腐蚀 膨胀与腐蚀 Dilation Dilation andand Erosion Erosion 1 对简单二值图像进行膨胀与腐蚀 clear all close all BW zeros 9 10 BW 4 6 4 7 1 BW SE strel square 3 BW1 imdilate BW SE BW2 imerode BW SE figure 1 subplot 1 2 1 imshow BW title Original Image subplot 1 2 2 imshow BW1 title Dilated Image figure 2 subplot 1 2 1 imshow BW title Original Image subplot 1 2 2 imshow BW2 title Eroded Image 修改参数 clear all close all BW zeros 9 10 BW 4 8 4 8 1 BW SE strel square 3 BW1 imdilate BW SE BW2 imerode BW SE figure 1 subplot 1 2 1 imshow BW title Original Image subplot 1 2 2 imshow BW1 title Dilated Image figure 2 subplot 1 2 1 imshow BW title Original Image subplot 1 2 2 imshow BW2 title Eroded Image 2 2 对文本图像进行膨胀与腐蚀对文本图像进行膨胀与腐蚀 clear all close all I imread C Users Administrator Desktop broken text tif SE 0 1 0 1 1 1 0 1 0 BW1 imdilate I SE BW2 imerode I SE figure 1 subplot 1 2 1 imshow I title Original Image subplot 1 2 2 imshow BW1 title Dilated Image figure 2 subplot 1 2 1 imshow I title Original Image subplot 1 2 2 imshow BW2 title Eroded Image 修改参数 clear all close all I imread C Users Administrator Desktop broken text tif SE 0 0 0 0 0 0 0 0 0 BW1 imdilate I SE BW2 imerode I SE figure 1 subplot 1 2 1 imshow I title Original Image subplot 1 2 2 imshow BW1 title Dilated Image figure 2 subplot 1 2 1 imshow I title Original Image subplot 1 2 2 imshow BW2 title Eroded Image 2 开 闭运算 开 闭运算 Open and Close clear all close all I imread cameraman tif bw im2bw I graythresh I se strel disk 5 bw2 imopen bw se subplot 1 2 1 imshow bw title Thresholded Image subplot 1 2 2 imshow bw2 title After opening bw3 imclose bw se figure subplot 1 2 1 imshow bw title Thresholded Image subplot 1 2 2 imshow bw3 title After Closing 修改参数 clear all close all I imread cameraman tif bw im2bw I graythresh I se strel disk 8 bw2 imopen bw se subplot 1 2 1 imshow bw title Thresholded Image subplot 1 2 2 imshow bw2 title After opening bw3 imclose bw se figure subplot 1 2 1 imshow bw title Thresholded Image subplot 1 2 2 imshow bw3 title After Closing 3 击中击中 击不中变换 击不中变换 hit and miss operation clear all close all bw 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1 0 0 0 interval 0 1 1 1 1 1 0 1 0 bw2 bwhitmiss bw interval subplot 1 3 1 imshow bw title Original Image subplot 1 3 2 imshow interval title Interval Image subplot 1 3 3 imshow bw2 title after hit miss transformation 修改参数 clear all close all bw 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1 0 0 0 interval 0 0 0 0 1 0 0 1 0 bw2 bwhitmiss bw interval subplot 1 3 1 imshow bw title Original Image subplot 1 3 2 imshow interval title Interval Image subplot 1 3 3 imshow bw2 title after hit miss transformation 4 细化与骨架抽取 细化与骨架抽取 clear all close all BW imread logo tif BW1 bwmorph BW thin Inf BW2 bwmorph BW skel Inf subplot 1 3 1 imshow BW title Original Image subplot 1 3 2 imshow BW1 title Thinned Image subplot 1 3 3 imshow BW2 title Image skeleton help bwmorph 二 用 MATLAB 二值数学形态学函数编程提取 rice gif 图像中的物体边界 clear all close all clc I imread C Users Administrator Desktop rice gif I double I 255 bw im2bw I graythresh I bw medfilt2 bw figure 1 subplot 221 imshow bw title orig
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高校导师学生管理与辅导方案范本
- 工地安全通道专项施工管理方案
- 提高学困生数学兴趣的实施方案
- 电力变电站施工组织设计方案
- 人教版五年级数学《分数加减法》教学方案
- 金融行业合规风险控制方案
- 智慧医疗项目实施方案
- 厂房租赁合同签订注意事项合集
- 大型体育赛事组织运营方案
- 校车安全管理实施方案
- 外销合同协议书英文翻译
- 灌区续建配套与节水改造规划报告
- 财务咨询外包协议
- 小学四年级数学学情分析报告
- 2023-2024学年上海市杨浦区六年级上学期期中考试语文试卷含详解
- 农行超级柜台业务知识考试题库(含答案)
- 旅游接待计划表
- 新标准大学英语(第三版)综合教程3(智慧版)课件 Unit6 Path to prosperity
- 3认识你自己-大学生自我意识发展课件
- 中药学全套(完整版)课件
- GB 1886.232-2016食品安全国家标准食品添加剂羧甲基纤维素钠
评论
0/150
提交评论