MATLAB数字图像处理实验二
实验一:给出不同的参数,模拟图像的高斯模糊图并显示;
实验二:给出不同的参数,模拟图像的运动模糊图并显示;
实验三:对2中的图像进行反滤波、维纳滤波并显示滤波后在结果;
实验四:对2中的图像加不同的噪声后进行反滤波、维纳滤波并显示滤波后在结果。
%%实验一
I=imread('hei.png');
subplot(221),imshow(I),title('原图');
I1=imfilter(I,fspecial('gaussian',[5 5],0.1));
subplot(222),imshow(I1),title('0.1的gaussian模糊');
I1=imfilter(I,fspecial('gaussian',[5 5],0.5));
subplot(223),imshow(I1),title('0.5的gaussian模糊');
I1=imfilter(I,fspecial('gaussian',[5 5],1.0));
subplot(224),imshow(I1),title('1.0的gaussian模糊');
%%
%%实验二
I=imread('hei.png');
subplot(221),imshow(I),title('原图');
I=imfilter(I,fspecial('motion',1))