資源簡(jiǎn)介
膨脹、腐蝕、開閉運(yùn)算、top-hat變換處理,可執(zhí)行,自己用過
代碼片段和文件信息
%形態(tài)學(xué)處理
a=imread(‘163.bmp‘);
%a=rgb2gray(a);
a=256-a;
se=strel(‘disk‘5);
%腐蝕
b=imerode(ase);
imshow(a)title(‘原圖‘);
figureimshow(b)title(‘腐蝕‘);
%膨脹
c=imdilate(ase);
figure
imshow(c)title(‘膨脹
評(píng)論
共有 條評(píng)論