No Login Data Private Local Save

Image FFT Visualizer - Online See Frequency Domain

17
0
0
0

Image FFT Visualizer

Upload an image to see its frequency domain β€” visualize the 2D Fourier Transform with magnitude and phase spectra in real-time.

Drop image here or click to browse Supports JPG, PNG, WebP, BMP β€” any common image format
Quick examples:
Original Image
Upload an image to begin
Magnitude Spectrum
Waiting for input
Phase Spectrum
Waiting for input

Frequently Asked Questions

What is a 2D FFT (Fourier Transform) of an image?
The 2D Fast Fourier Transform (FFT) decomposes an image into its spatial frequency components. In simple terms, it reveals how much of each "pattern" (from fine details to broad gradients) exists in the image. The result is a complex-valued matrix where each point represents a specific spatial frequency β€” low frequencies (broad shapes, smooth gradients) appear near the center, while high frequencies (sharp edges, fine textures, noise) appear toward the edges.
What is the Magnitude Spectrum?
The magnitude spectrum shows the amplitude (strength) of each frequency component. It tells you how much of each frequency exists in the image, ignoring phase information. Bright spots in the magnitude spectrum indicate dominant frequencies. The DC component (center pixel) represents the average brightness of the entire image. Periodic patterns like stripes produce distinct peaks, while random noise appears as a diffuse background.
What is the Phase Spectrum and why is it important?
The phase spectrum encodes the position information of features in the image. While the magnitude tells you which frequencies are present, the phase tells you where they are located relative to each other. Phase is crucial for reconstructing the original image β€” if you swap the phase spectra of two images while keeping their magnitudes, the resulting images will look more like the source of the phase data. This demonstrates that phase carries essential structural information about edges, shapes, and object locations.
Why is the spectrum centered (fftshift)?
By default, the FFT output places the zero-frequency (DC) component at the top-left corner, with frequencies increasing toward the bottom-right. We apply fftshift to rearrange the quadrants so that the DC component sits at the center, low frequencies surround it, and high frequencies radiate outward. This centered view is much more intuitive β€” it resembles how we naturally think about frequency space, with the "heartbeat" of the image at the center and progressively finer details toward the periphery.
Why use logarithmic scaling for the magnitude spectrum?
The raw magnitude values span an enormous dynamic range β€” the DC component can be millions of times brighter than high-frequency components. Without logarithmic compression, the spectrum would appear as a single bright dot at the center with everything else nearly black. Applying log(1 + magnitude) compresses this range, making both strong and weak frequency components visible simultaneously. This reveals the rich structure of the frequency domain that would otherwise be hidden.
What can I learn from the frequency domain of an image?
The frequency domain reveals: (1) Periodic patterns (stripes, grids) appear as sharp peaks β€” their position indicates orientation and spacing. (2) Sharp edges produce energy across many high frequencies in a characteristic cross pattern. (3) Noise manifests as scattered high-frequency energy. (4) Blur removes high frequencies, so a blurry image has a spectrum concentrated near the center. (5) Image compression artifacts often leave telltale signatures in the frequency domain. Engineers use FFT for image filtering, deconvolution, pattern analysis, and quality assessment.
Why does the phase spectrum look like colorful noise?
The phase spectrum often appears noisy because phase values are essentially pseudorandom for many real-world images β€” they encode fine positional information that doesn't follow a smooth pattern. However, this "noise" is highly structured and contains critical information. We use a cyclic colormap (rainbow/HSL) for phase because phase is periodic (βˆ’Ο€ and +Ο€ represent the same angle). This makes the phase spectrum look like colorful static, but every pixel carries precise geometric information about the image structure.