一个较好的程序%中值滤波clc,clear;f=imread('2.bmp');subplot(221),imshow(f);f1=imnoise(f,'gaussian',0.002,0.0008);subplot(222),imshow(f1);k1=floor(3/2)+1;k2=floor(3/2)+1;X=f1;[M,N]=size(X);