卡通动漫av无码|一区二区三区四区无码区|无码人妻一区二区三区香港经典|日韩和的一区二区|99久久国产综合精品动漫无码|久草免费在视频线|精品无码视频在线观看|日本欧洲久久综合|国产伊人aV在线|国产熟女久久久人妻

標(biāo)題:求助

 liubei389304

1#發(fā)表于:2012-04-14 16:28:01  - IP:222.89.*.*

求助

用matlab做出圖片結(jié)果
讀入圖像
I=imread('cell.tif');
figure, imshow(I),title('original image');
檢測(cè)完整的細(xì)胞
BWS=edge(I, 'sobel', (graythresh(I) *.1));
figure, imshow(BWs), title('binary gradient mask');
填補(bǔ)縫隙
se90=strel('line', 3, 90);
se0=strel('line', 3, 0);
膨脹操作
BWsdil=imdilate(BWs, [se90 se0]);
figure, imshow(BWsdil), title('dilated gradient mask');
填充
BWdfill= imfill(BWsdil, 'holes');
figure, imshow(BWdfill);
title('binary image with filled holes');
移除與邊界聯(lián)通的目標(biāo)
BWnobord = imclearborder (BWdfill, 4);
figure, imshow (BWnobord), title('cleared border image');
平滑
seD = strel ('diamond',1);
BWfinal = imerode (BWnobore,seD);
figure, imshow (BWfinal), title('segmented image');
展開帖子列表