matlab练习程序(图像加噪,各种滤波)
cl;img=imread('3.17.tif');imgn=imnoise(img,'salt & pepper',0.02);[m n]=size(img);%h=fspecial('average',[3 3]); % 3*3的均值滤波%imgn1=imfilter(imgn,h,'replicate');%imgn=medfilt2(imgn,[3 3]); ...