Full search page →

IP 04 · Does the sharpest low-pass filter give the best image?

IntermediateIP 04 · Filtering in the Frequency DomainImage lab

Description

Filter a real photo in the frequency domain and compare an ideal, a Butterworth and a Gaussian low-pass at the same cutoff.

Try this: Choose the ideal filter with cutoff 12 and look at the red and blue pixels around the edges. Switch to Gaussian at the same cutoff. Which filter rings, and which has the higher PSNR?

Predict first

At the same cutoff, which of the three filters pushes the most pixels outside the original image’s brightness range (ringing)?

Hints

The chapter section that uses this lab:

Explanation

Answer the prediction first, or open the explanation when you are ready.

Show the explanation

A sharp cut in frequency is a sinc in space, and a sinc oscillates around every edge, so the ideal filter overshoots. Butterworth softens the cut (its ringing grows with the order n) and the Gaussian is Gaussian in both domains, so it never overshoots. At cutoff 12 the ideal filter pushes about 1.6% of the pixels out of range and the Gaussian none, and the Gaussian also has the higher PSNR.

Lab · IP 04 · Does the sharpest low-pass filter give the best image?

Predict first

At the same cutoff, which of the three filters pushes the most pixels outside the original image’s brightness range (ringing)?

Loading image…

Original crop
Spectrum kept by the filter (log scale)
Filtered image
Pixels outside the original range: brighter (red), darker (blue)
One image row through a strong edge

Try this: Choose the ideal filter with cutoff 12 and look at the red and blue pixels around the edges. Switch to Gaussian at the same cutoff. Which filter rings, and which has the higher PSNR?

A real 128 × 128 crop of the camera test image. The transfer function multiplies its 2-D FFT (no padding, so the image is treated as periodic) and the inverse transform is not clipped before ripples are counted. Cutoff D0 is in cycles per image; Gaussian H = exp(−D²/2D0²); Butterworth H = 1/(1 + (D/D0)^2n). Overshoot counts pixels more than 0.02 outside the original image’s own gray range. PSNR compares the filtered image, clipped to [0, 1], with the original.

Method and image sources

Open in the Playground →