Matlab图像高斯平滑滤波处理

标签:
matlab |
分类: Matlab学习资料 |
%图像高斯平滑滤波处理
img=imread('1.jpg');
f=rgb2gray(img);
subplot(1,2,1);
imshow(f);
f=double(f);
f=fft2(f);
f=fftshift(f);
[m,n]=size(f);
d0=80;
m1=fix(m/2);
n1=fix(n/2);
for i=1:m
end
g=f.*h;
g=ifftshift(g);
g=ifft2(g);
g=mat2gray(real(g));
subplot(1,2,2);
imshow(g);
imwrite(img,'2.jpg');
处理前后比照:
http://home.eeworld.com.cn/attachment/2009/02/99525_200902041924011VZVF.jpg
***************************************************************************************************
转自:Matlab图像高斯平滑滤波处理:
http://home.eeworld.com.cn/my/space-uid-99525-blogid-13306.html