Image Filtering Matlab Motion Blur Method

Image filtering matlab motion method

close all;

I = imread(‘Cameraman.jpg’);

h=fspecial(‘motion’, 20, 45);
K1 = imfilter(I,h);

h=fspecial(‘motion’, 10, 30);
K2 = imfilter(I,h);

subplot(1,3,1);
imshow(I);
title(‘original’);

subplot(1,3,2);
imshow(K1);
title(‘motion 1’);

subplot(1,3,3);
imshow(K10);
title(‘motion 2’);

button_download-code