Fourier Transform Explorer

Understanding MRI, Image Processing, and Frequency Domain Analysis

The Fourier Transform is one of the most powerful tools in mathematics, with applications from image processing to medical imaging. This interactive explorer helps you understand how it works by visualizing the transformation between spatial and frequency domains.

Upload an image, explore its frequency components, and see how MRI machines use these principles to create detailed images of the human body.

Image Controls

Supported formats: JPG, PNG, GIF
Radius: 30%

MRI Connection

MRI machines don't take pictures directly. They measure frequency data (k-space) and use inverse Fourier transforms to reconstruct images. Try filtering frequency components to see how MRI image quality is affected!

Original Image
Fourier Domain
Filtered Result
Comparison

Upload an image to begin Fourier analysis. The image will be converted to grayscale for frequency domain processing.

Note: The magnitude spectrum is centered using FFT shift. Low frequencies (DC component) are in the center, with high frequencies at the edges.
Magnitude Spectrum (Centered)
Phase Spectrum

The Fourier Transform decomposes an image into its frequency components. The magnitude shows frequency strength (centered with low frequencies in middle), while the phase contains location information.

This is the result after applying frequency domain filtering and inverse Fourier transform. Different filters produce different effects like blurring or edge enhancement.

Original Image
Filtered Image

Side-by-side comparison of the original and filtered images. Notice how different frequency components affect the final image appearance.

Understanding Fourier Transform in Imaging

What is the Fourier Transform?

The Fourier Transform is a mathematical operation that decomposes a signal (like an image) into its constituent frequencies. In image processing, it converts spatial information (pixels) into frequency information, revealing patterns that aren't obvious in the original image.

Magnitude vs. Phase Spectrum

Magnitude Spectrum shows the strength of each frequency component. After applying FFT shift, low frequencies (including the DC component representing average brightness) appear in the center, with high frequencies radiating outward. Phase Spectrum contains information about the position of features in the image. Surprisingly, the phase spectrum is more important for image recognition!

Why Center the Spectrum?

Raw Fourier transform output has low frequencies at the corners. Applying an FFT shift (swapping quadrants) centers the spectrum, making it more intuitive to interpret. This centered representation is standard in image processing and MRI visualization.

Frequency Filtering

By modifying specific frequency components, we can alter images in useful ways:

  • Low-pass filters remove high frequencies (edges), resulting in blurring
  • High-pass filters remove low frequencies (smooth areas), enhancing edges
  • Band-pass filters keep only middle frequencies, useful for texture analysis

Fourier Transform in MRI

Magnetic Resonance Imaging (MRI) is one of the most important applications of Fourier Transform in medicine. Instead of capturing images directly, MRI machines:

  1. Measure radio frequency signals from hydrogen atoms in the body
  2. Collect data in "k-space" (frequency domain) with low frequencies in the center
  3. Use inverse Fourier Transform to reconstruct anatomical images

This is why MRI scan time is related to how much frequency data is collected. More data means higher resolution but longer scan times. The centered k-space representation allows radiologists to prioritize important frequency components.