运动模糊
I = imread('Fig0525(a)(aerial_view_no_turb).tif');
figure,subplot(1,2,1);imshow(I);title('原图像');
%T = rgb2gray(M);figure;imshow(I);
PSF = fspecial('motion',20,15);
J = imfilter(I,PSF,'conv','circular');
subplot(1,2,2);imshow(J);title('模糊运动的图像');
imwrite(J, '55.tif');
'motion'motion filter 为运动模糊算子,有两个参数,表示摄像物体逆时针方向以theta角度运动了len个像素,len的默认值为9,theta的默认值为0; H = FSPECIAL('motion',LEN,THETA) returns a filter to approximate, onceconvolved with an image, the linear motion of a camera by LEN pixels, with an angle of THETA degrees in a counter-clockwise direction. Thefilter becomes a vector for horizontal and vertical motions. Thedefault LEN is 9, the default THETA is 0, which corresponds to ahorizontal motion of 9 pixels.
散焦模糊
'disk'