You are on page 1of 1

I = imread('C:\Users\sony\Desktop\b.

png');
%I = I(60+[1:256],222+[1:256],:); % crop the image
figure; imshow(I); title('Original Image');
LEN = 31;
THETA = 11;
PSF = fspecial('motion',LEN,THETA);
Blurred = imfilter(I,PSF,'circular','conv');%convolve the PSF with the original
image,I,
figure; imshow(Blurred); title('Blurred Image')

You might also like