免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 阿卡波糖用药宣教指南
- 2025年妇产科专科联盟妊娠相关疾病诊治进展学习班考试卷及答案
- 简短有趣个人自我介绍
- 基于边缘计算的医院质量实时监测方案
- 帕金森病症状辨析及护理心得
- 红外线湿热敷疗法
- 肾炎病常见症状讲解及护理要点
- 肺脓肿症状解读及护理措施
- 投资银行部总经理年度财务分析报告
- 标示标牌标准教案(2025-2026学年)
- 护师个人述职报告
- 化工厂冬季四防培训课件
- 普通密码设备应急预案
- 太乙课堂游戏最终版
- 部编版道德与法制六年级上册全册教案(表格教学设计)
- 高标准农田建设项目施工合同
- 2025年人教版七年级生物下册月考试卷
- 2025年度海底油气管道建设承包合同范本4篇
- 装修合同模板是合同
- “四史”知识竞赛题库及答案(450题)
- 蓝色简约我的理想大学
评论
0/150
提交评论