Image denoising with FFT

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 ...

Get Hands-On Image Processing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.