Teach (and learn) the Fourier transform geometrically! - Deepstash
Productivity Systems

Learn more about problemsolving with this collection

How to set achievable goals

How to create and stick to a schedule

How to break down large projects into smaller manageable tasks

Productivity Systems

Discover 46 similar ideas in

It takes just

6 mins to read

1. Convert outline to a complex signal

First, we need to get an outline from an image. I decided to use Canny edge detection to extract the edges from an image (in the example above, a drawing of Sherlock Holmes).

This will give us a 2D binary array indicating the edges of the image. Now, we need to represent these points as complex coordinates oriented about the origin. The x-axis will represent the real component, and the y-axis will represent the imaginary component.

5

87 reads

2. Reorder to minimize distance between sequential points

Now, we need to order the points to make the progression as smooth as possible. In practice, I’ve found ordering to minimize the difference from one point to the next is a good approach!

4

64 reads

3. Call the Fourier transform

We’ll now apply the Fourier transform to extract the magnitude and phase information associated with each frequency. As visualizing all the oscillators is slow, we’ll filter out all the frequency components above self._n_oscillators .

4

48 reads

CURATED BY

More like this

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving & library

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Personalized recommendations

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates