加权均值滤波
I=imread('rec.bmp');
subplot(2,2,1),imshow(I)
K1=imfilter(I,fspecial('gaussian',[3 3]));
K2=imfilter(I,fspecial('gaussian',[5 5]));
K3=imfilter(I,fspecial('gaussian',[7 7]));
subplot(2,2,2),imshow(K1)
subplot(2,2,3),imshow(K2)
subplot(2,2,4),imshow(K3)
1