教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 学前教育 >

形态学处理 - 图文(4)

来源:网络收集 时间:2026-09-09
导读: 193 0 0 0 1 1 1 1 0 0 0 194 0 0 0 0 0 0 0 0 0 0 195 0 0 0 0 0 0 0 0 0 0 ]; 196 subplot(221),imshow(bw1,'InitialMagnification','fit'); 197 title('Generation 1'); 198 199 bw2=applylut(bw1,lut); 200 sub

193 0 0 0 1 1 1 1 0 0 0

194 0 0 0 0 0 0 0 0 0 0

195 0 0 0 0 0 0 0 0 0 0 ];

196 subplot(221),imshow(bw1,'InitialMagnification','fit');

197 title('Generation 1');

198

199 bw2=applylut(bw1,lut);

200 subplot(222),imshow(bw2,'InitialMagnification','fit'),

201 title('Generation 2');

202

203 bw3=applylut(bw2,lut);

204 subplot(223),imshow(bw3,'InitialMagnification','fit');

205 title('Generation 3');

206

207 temp=bw1;

208 for i=2:100

209 bw100=applylut(temp,lut);

210 temp=bw100;

211 end

212 subplot(224),imshow(bw100,'InitialMagnification','fit')

213 title('Generation 100');

214%显示Generation结果如下:

215

216 %% getsequence

217 clc

218 clear

219 se=strel('diamond',5)

220 decomp=getsequence(se)%getsequence函数为得到分解的strel序列

221 decomp(1)

222 decomp(2)

223

224 %% endpoints

225 clc

226 clear

227

228 f1=imread('.\\images\\dipum_images_ch09\\Fig0914(a)(bone-skel).tif');

229 subplot(121),imshow(f1);

230 title('原始形态骨架图像');

231

232 g1=endpoints(f1);

233 %set(gcf,'outerposition',get(0,'screensize'));%运行完后自动生成最大的窗口

234 subplot(122),imshow(g1);

235 title('骨架图像的端点图像');

236 %骨架头像端点检测头像如下:

237

238 f2=imread('.\\images\\dipum_images_ch09\\Fig0916(a)(bone).tif');

239 figure,subplot(121),imshow(f2);

240 title('原始骨头图像');

241

242 g2=endpoints(f2);

243 subplot(122),imshow(g2);

244 title('骨头图像端点头像');%结果是没有端点

245%骨头头像端点检测图像如下:

246

247 %% bwmorph组合常见形态学之细化

248 clc

249 clear

250 f=imread('.\\images\\dipum_images_ch09\\Fig0911(a)(noisy-fingerprint).tif');

251 subplot(221),imshow(f);

252 title('指纹图像细化原图');

253

254 g1=bwmorph(f,'thin',1);

255 subplot(222),imshow(g1);

256 title('指纹图像细化原图');

形态学处理 - 图文(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/597156.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)