When I study some paper, I have some questions about usase of convolution theorem.
Laplacian = [0 1 0;1 -4 1;0 1 0];
F = padarray(Laplacian,[m-3+1,n-3+1]/2,'pre');
F = padarray(W,[m-3-1,n-3-1]/2,'post');
F : filter
From this, first I want use convolution theorem :
fft2(image).*fft2(F).
But, in the reference, the method is used like :
fft2(image).*fft2(fftshift(F)).
What am I doing wrong? Thanks