The next example is taken from http://www.scipy-lectures.org/intro/scipy/auto_examples/solutions/plot_fft_image_denoise.html. This example demonstrates how to denoise an image first by blocking Fourier elements with high frequencies using a LPF with FFT. Let's first display the noisy grayscale image with the following code block:
im = pylab.imread('../images/moonlanding.png').astype(float)pylab.figure(figsize=(10,10))pylab.imshow(im, pylab.cm.gray), pylab.axis('off'), pylab.title('Original image'), pylab.show()
The following screenshot shows the output of the preceding code block, the original noisy image:
The following ...