File size: 1,066 Bytes
e6c0aeb
 
 
 
 
 
 
 
 
 
 
 
66bf7dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36c186a
66bf7dc
36c186a
66bf7dc
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: Image Fft Playground
emoji: πŸ“Š
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 3.50.2
app_file: app.py
pinned: false
license: apache-2.0
---

# Image FFT Playground

Gradio app to play with FFT of images.

Huggingface Spaces Demo: <https://huggingface.co/spaces/acozma/image_fft_playground>

## Usage

- Upload your own input image, or use one of the example images
- Optionally draw on the input image to see how the FFT changes
- Mask out areas of the FFT magnitude and phase to see how the image changes
- Apply IFFT to the modified FFT to see the result

## Example Screenshots

![Generate FFT](./res/screenshot1.png)

![Generate IFFT](./res/screenshot2.png)

## Known Bugs

- Gradio Image canvas sometimes bugs out and unintentionally resizes/crops the images on the FFT Magnitude and Phase canvases. As a result, taking the IFFT will produce an error. To fix this, just refresh the page and try again.
  - In the process of re-writing the app using Streamlit, since Gradio image canvas is not very stable and the API is not very flexible.