自适应局部降噪滤波器在MATLAB中输入程序如下:block=3;I=imread('VLSI.PNG');I=rgb2gray(I);subplot(1,2,1);imshow(I);[M,N]=size(I);NI=zeros(M,N);temp=[];fork=1:Mtemp=[tempI(k,:)];endEta_total=var(temp);fork=(block+1)/2:M-(block-1)/2forl=(block+1)/2:N-(block-1)/2temp=[];form=1:blocktemp=[tempI(k+m-(block+1)/2,(l-(block-1)/2):(l+(block-1)/2))];endlocal_mean=mean(temp);local_var=var(temp);iflocal_var==0NI(k,l)=I(k,l);elseNI(k,l)=I(k,l)-Eta_total/local_var*(I(k,l)-local_mean);endendendNI=uint8(NI);subplot(1,2,2);imshow(NI);运行结果: