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

Teach (and learn) the Fourier transform geometrically!

Curated from: towardsdatascience.com

Ideas, facts & insights covering these topics:

3 ideas

·

202 reads

2

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

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

88 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

65 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

49 reads

IDEAS CURATED BY

Mausam Adhikari's ideas are part of this journey:

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

Related collections

Similar ideas

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

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