%重构
f=imread('plugs.tif');
subplot(2,2,1),imshow(f),title('原图像')
se=strel('disk',5);
fe=imerode(f,se);%腐蚀
fobr=imreconstruct(fe,f)%重构
subplot(2,2,2),imshow(fobr),title('开运算重构后的图像')
fobrc=imcomplement(fobr);%求补
fobrce=imerode(fobrc,se);%腐蚀
fobrcbr=imcomplement(imreconstruct(fobrce,fobrc));%重构
subplot(2,2,3),imshow(fobrcbr),title('开运算重构后再经闭运算重构后的图像')
重构
最新推荐文章于 2021-02-24 20:00:18 发布