Showing posts from March, 2017

New look!

A very short update to say that Blogger has launched a collection of new templates. They're a lot cleaner and more modern looking, plus have some nice customization options, so I decided to make the switch. The main difference is the layout is a lot wider, and the non-post stuff on the right has now moved into the left. Hopefully everything still works, but if anything's broken let me know.

Also, kudos to the Blogger team, the new ones look rather good! Plus threaded comments still work -(looks like the old code is still used for them, too :p) and the commenting experience seems a bit cleaner now.

Perceiving Frequencies

Fourier transforms are interesting things - a way of converting repetition to single values and back (roughly). Most commonly known in music (see my earlier post), it also shows up oddly as the relationship between position and momentum in quantum mechanics. While audio perception takes patterns over time and converts them to notes, our eyes do likewise, but taking patterns over space - called spatial frequencies. Just as with music, there's (bidirectional) ways to convert an image into its spatial frequency representation.
Part 1: Frequency swapped images
As an example, on the left is a (greyscale) photo of George Bush, and on the right is the frequency version. Note that frequencies are complex numbers: representing both how strong the frequency is (the power - top right greyscale image) as well as the phase - i.e. where in the cycle it starts. As this is cyclical, I'll represent it as colours, from red -> green -> blue -> back to red (bottom right). For colour pictu…