資源簡介
本代碼是骨架特征提取的代碼,用Matlab編寫,效果還不錯!
代碼片段和文件信息
clear?all;
I=imread(‘kids.tif‘);
subplot(221);
imshow(I);
title(‘原圖像‘);
level=graythresh(I);
I=im2bw(Ilevel);subplot(222);...
imshow(I);
re=ones(400318);
I=re-I;
subplot(222);
imshow(I);
title(‘二值化的圖像‘);
bwl=bwmorph(I‘skel‘Inf);
subplot(223);
imshow(bwl);
title(‘骨架提取‘);
bw2=bwmorph(bwl‘spur‘4);
subplot(224)
imshow(bw2)
title(‘消除毛刺后的圖像‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????71964??2009-04-08?21:31??unti
?????文件????????396??2009-04-08?18:40??gujia.m
-----------?---------??----------?-----??----
????????????????72360????????????????????2
- 上一篇:mimo程序stbc譯碼解碼
- 下一篇:K-medoidsK中心算法
評論
共有 條評論