Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: Fft Image Explorer
emoji: ⚡
colorFrom: blue
colorTo: blue
sdk: gradio
sdk_version: 6.0.2
app_file: app.py
pinned: false
🔍 FFT Image Explorer — Interactive Frequency-Domain Filtering
Welcome to the FFT Image Explorer!
This tool lets you visualize and manipulate images in the frequency domain using the 2D Fast Fourier Transform (FFT).
Upload any image and apply Low-pass, High-pass, or Band-pass filters to see how different frequency ranges affect sharpness, edges, texture, and noise.
🚀 Features
- 🖼️ Upload any JPG/PNG image
- 🔎 View the FFT magnitude spectrum
- ✨Apply frequency-domain filters:
- Low-pass → blur / smoothing
- High-pass → edges & detail enhancement
- Band-pass → isolate textures
- 🎛️ Adjustable:
- Cutoff frequency
- Bandwidth (Band-pass only)
- 🎨 Outputs shown side-by-side:
- Original image
- FFT spectrum
- Frequency mask
- Filtered result
- 🌈 Processes each color channel independently
🧠 How It Works
- The image is split into its B, G, R channels.
- For each channel:
- 2D FFT is computed
- Frequencies are centered
- A custom mask (Low/High/Band-pass) is applied
- Inverse FFT reconstructs the filtered channel
- Channels are merged back into the final color image.
This reveals how frequency components shape the details and textures of an image.
🕹️ How to Use
- Upload an image
- Select a filter type
- Adjust cutoff frequency (and bandwidth if needed)
- Explore how your image changes across the four outputs
📌 About
Built with:
- Python
- NumPy
- OpenCV
- Gradio
Created for learning and exploring image processing, signal processing, and Fourier transforms in a visual, interactive way.
✨ Enjoy exploring the hidden frequency world inside your images!