In this demonstration, the convolution theorem is illustrated by comparing the result of the convolution with its equivalent filtering in frequency domain.
The 3x3 kernel is zero padded to the size of the input image and periodicaly translated so that the center of the kernel stays at the top-left image corner. Its spectrum is visualized.
Both images, filtered by the convolution and filtered in the frequency domain are compared to see that they are the same. The small differencies are due to numerical precision errors.