Let's say size of the image is 100 x 100 and the kernel matrix is 5x5. I took the DFT of both the image and the kernel. But how do I multiple these two matrices? And which parts involve in these multiplication? real, imaginary or magnitude? Thanks
Is this what am I supposed to do? And at what locations I put 0s to make the kernel 100x100?
for i to 102
for j to 102
{
newReal = realImage * realKernel - imaginaryImage * imaginaryKernel
newImaginary = realImage * imaginaryKernel + imaginaryImage * realKernel
}
and do InverseFourierTransform(newReal, newImaginary)