2D Fourier Transform

Every image is a sum of 2D sinusoidal gratings. The 2D FFT finds the amplitude and phase of each one. Pick a pattern (or paint your own), watch its spectrum form, then mask the spectrum and inverse-transform to see filtering in action — blur, sharpen, and stripe removal are all just multiplications in the frequency domain.

Source

8 cyc
20 cyc 90°

Frequency-domain filter

32
A soft cutoff avoids the ringing artifacts a sharp (brick-wall) filter creates.
2.0

Pipeline

Input spatial domain
f(x, y)
Spectrum log magnitude · DC centered
|F(u, v)|
Reconstruction inverse FFT of masked spectrum
f'(x, y)
256 × 256 · radix-2 FFT
forward + inverse FFT in — ms

What you're looking at