91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 903B
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-02
  • 語(yǔ)言: Matlab
  • 標(biāo)簽: 分水嶺??

資源簡(jiǎn)介

基于matlab的分水嶺算法分割黏連細(xì)胞程序代碼。。。。。

資源截圖

代碼片段和文件信息

f=imread(‘C:\Users\DCLLLL\Desktop\pic\pic?(9).jpg‘);???????????????????????????????????%?讀入圖像
bw=im2bw(fgraythresh(f));?????????????????????????????????%?轉(zhuǎn)換為黑白二值圖像
bwc=~bw;????????????????????????????????????????????????%?圖像反色
dst=bwdist(bwc);??????????????????????????????????????????%?圖像距離
ws=watershed(-dst);
w=ws==0;
rf=bw&~w;
figureimshow(f);????????????????????????????????????????%?顯示原始圖像
title(‘Original?Image‘);????????????????????????????????????%?設(shè)置圖像標(biāo)題
figureimshow(bw);??????????????????????????????????????%?顯示處理后的圖像
title(‘Negative?Image‘);???????????????????????????????????%?設(shè)置圖像標(biāo)題
figureimshow(ws);???????????????????????????????????????%?顯示處理后的圖像
title(‘Watershed?-?Distance?Transform‘);?????????????????????%?設(shè)置圖像標(biāo)題
figureimshow(rf);????????????????????????????????????????%?顯示處理后的圖像
title(‘Superimposed?-?Watershed?and?original?image‘);?????????%?設(shè)置圖像標(biāo)題
h=fspecial(‘sobel‘);???????????????????????????????????????%?設(shè)置濾波器?
fd=im2double(f);?????????????????????????????????????????%?數(shù)據(jù)類型轉(zhuǎn)換
sq=sqrt(imfilter(fdh‘replicate‘).^2+imfilter(fdh‘‘replicate‘).^2);??%?分水嶺距離變換
sqoc=imclose(imopen(sqones(33))ones(33));???????????????%?圖像閉合運(yùn)算
wsd=watershed(sqoc);???????????????????????????????
wg=wsd==0;
rfg=f;
rfg(wg)=255;
figureimshow(wsd);????????????????????????????????????????%?顯示處理后的圖像
title(‘Watershed?-?Gradient‘);?????????????????????????????????%?設(shè)置圖像標(biāo)題
figureimshow(rf);???????????????????????????????????????????%?顯示處理后的圖像
title(‘Superimposed?-?Watershed?and?original?image‘);???????????%?設(shè)置圖像標(biāo)題
im=imextendedmin(f20);
Lim=watershed(bwdist(im));
figureimshow(Lim);????????????????????????????????????????%?顯示處理后的圖像
title(‘Watershed?-?Marker?Controlled‘);?????????????????????????%?設(shè)置圖像標(biāo)題
em=Lim==0;
rfmin=imimposemin(sqim|em);
wsdmin=watershed(rfmin);
figureimshow(rfmin);??????????????????????????????????????%?顯示處理后的圖像
title(‘Watershed?-?Gradient?and?Marker?Controlled‘);????????????%?設(shè)置圖像標(biāo)題
rfgm=f;
rfgm(wsdmin==0)=255;
figureimshow(rfgm);???????????????????????????????????????%?顯示處理后的圖像
title(‘Superimposed?-?Watershed?(GM)?and?original?image‘);?%?設(shè)置圖像標(biāo)題

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????2313??2012-10-28?00:36??分水嶺黏連細(xì)胞分割\fsl.m

?????目錄??????????0??2018-02-05?13:25??分水嶺黏連細(xì)胞分割

-----------?---------??----------?-----??----

?????????????????2313????????????????????2


評(píng)論

共有 條評(píng)論