avi brown

fft paint

i like to call myself fourier-pilled. learning to think of things in terms of their frequency decomposition was one of the most significant takeaways from my eee degree. i love the fourier transform.

as a toy project for playing with 2d fft and spatial spectra, i wrote a small program that open two windows: the 2nd screen with the ft allows you to "draw" black or white, where drawing black blocks frequencies and drawing white passes them. this allows you to experiment, "drawing" filters of different kinds. you can get some pretty interesting results.

  1. an image of your choice
  2. the 2d fourier transform of the image

blocking all but horizontal frequency components on an image of a zebra makes only horizontally oscillating stripes appear:

isolated

and the same vice-versa:

isolated

repo

example video 1

example video 2