31
1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

Embed Size (px)

Citation preview

Page 1: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

1

Spatial Frequencyor

How I learned to love the Fourier Transform

Jean Baptiste Joseph Fourier

Page 2: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

2

Spatial Frequency

• Efficient data representation

• Provides a means for modeling and removing noise

• Physical processes are often best described in “frequency domain”

• Provides a powerful means of image analysis

Page 3: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

3

What is spatial frequency?

• Instead of describing a function (i.e., a shape) by a series of positions

• It is described by a series of cosines

Page 4: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

4

What is spatial frequency?

A

g(x) = A cos(x)

2

x

g(x)

Page 5: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

5

What is spatial frequency?

Period (L)Wavelength ()Frequency (1/f)

Amplitude (A)Magnitude (A)

A cos(x 2/L)g(x) = A cos(x 2/) A cos(x 2f)

x

g(x)

Page 6: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

6

What is spatial frequency?

A

g(x) = A cos(x 2f)

x

g(x)

(1/f)

Page 7: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

7

What is spatial frequency?

g(x) = A cos(x 2f + )

x

g(x)

Page 8: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

8

What is spatial frequency?

g(x) = A cos(x 2f + )A=2 mf = 0.5 m-1

= 0.25 = 45g(x) = 2 cos(x 2(0.5) + 0.25) 2 cos(x + 0.25)

x g(x)0.00 2 cos(0.25) = 0.707106...0.25 2 cos(0.50) = 0.00.50 2 cos(0.75) = -0.707106...0.75 2 cos(1.00) = -1.01.00 2 cos(1.25) = -0.707106…1.25 2 cos(1.50) = 01.50 2 cos(1.75) = 0.707106...1.75 2 cos(2.00) = 1.02.00 2 cos(2.25) = 0.707106...

Page 9: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

9

What is spatial frequency?

g(x) = A cos(x 2f + )

x

g(x)

Page 10: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

10

What is spatial frequency?

gi(x) = Ai cos(x 2fi + i), i = 0,1,2,3,...

x

Page 11: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

11

What is spatial frequency?

gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N-1

f=i/N

0 N

Page 12: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

12

What is spatial frequency?

gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N-1

f=i/N

0 N

Page 13: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

13

What is spatial frequency?

gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N-1

i=0 i=1 i=2

Page 14: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

14

What is spatial frequency?gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N/2-1

i=N/2-1i=0

If N equals the number of pixel in a line, then...

Lowest frequency Highest frequency

Page 15: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

15

What is spatial frequency?gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N/2-1

i=N/2-1i=0

If N equals the number of pixel in a line, then...

Lowest frequency Highest frequency

Page 16: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

16

What is spatial frequency?gi(x) = Ai cos(x 2i/N + i), i = 0,1,2,3,…,N/2-1

i=N/2i=0

If N equals the number of pixel in a line, then...

Lowest frequency Too high Redundant frequency

Page 17: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

17

What is spatial frequency?

12/

0

12/

0

/2cos)(Ni

iii

Ni

ii NixAxgxg

Page 18: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

18

Page 19: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

19

Page 20: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

20

What is spatial frequency?

+

+=

Low frequency

Medium frequency

High frequency

Page 21: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

21

What is spatial frequency?

+

+=

Page 22: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

22

g(x)

i=1

i=2

i=3

i=4

i=5

i=63

0 127

x

Page 23: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

23

g(x)

i=1

i=2

i=3

i=4

i=5

i=10

0 127x

Page 24: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

24

g(x)

g(x)

64 terms

10 terms

Page 25: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

25

g(x)

i=1

i=2

i=3

i=4

i=5

i=630 127

x

Fourier Decomposition of a step function (64 terms)

Page 26: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

26

g(x)

i=1

i=2

i=3

i=4

i=5

i=100 63

x

Fourier Decomposition of a step function (11 terms)

Page 27: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

27

What is spatial frequency?

12/

0

/2cos)(Ni

iii NixAxg

Any function of x (any shape) that can be represented by g(x) can also be represented by the summation of cosine functions

Page 28: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

28

What is spatial frequency?

+

+=

Low frequency

Medium frequency

High frequency

Page 29: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

29

What is spatial frequency?

gi(x) = 1.3, 2.1, 1.4, 5.7, …., i=0,1,2…N-1

N pieces of information

12/

0

/2cos)(Ni

iiii NixAxg

N pieces of informationN/2 amplitudes (Ai, i=0,1,…,N/2-1) andN/2 phases (i, i=0,1,…,N/2-1) and

Spatial Domain

Frequency Domain

Page 30: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

30

What is spatial frequency?

gi(x)

Are equivalentThey contain the same amount of information

12/

0

/2cosNi

iii NixA and

The sequence of amplitudes squared is the SPECTRUM

Page 31: 1 Spatial Frequency or How I learned to love the Fourier Transform Jean Baptiste Joseph Fourier

31

Spatial Frequencyor

How I learned to love the Fourier Transform

Jean Baptiste Joseph Fourier