Hi, I am new member to this community. I was trying to simulate motion blur with the model given in Gonzalez 3rd Edition(Eqn 5.6.11) which is H(u,v)=(T/X)sin(X)e^(-jX) where X = pi(ua+vb). Here a, b, T are linear motion defining constants. As explained in the text book(page 372), I was expecting a motion blur in 45 degree direction for the parameters T=1, a=0.1 and b=0.1. But I am not getting it. Following is my code. Can anybody tell me where I went wrong.
im = (imread('DigitImgTB.jpg'));
[m n] = size(im); [u v] = meshgrid(1:m, 1:n);
T = 1; a = 0.1; b = 0.1;
Hmb = (T./(pi*(u*a+v*b))).*(sin(pi*(u*a + v*b))).*(exp(-1j*pi.*(u*a + v*b)));
MB = ifft2(fft2(im).*Hmb);
The input image is available at
Thank you, Gopakumar