Top Banner
The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at http://commons.wikimedia.org/wiki/File:The_Great_Wave_off_Kanagawa.jpg
17

The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Dec 23, 2015

Download

Documents

Dorcas Hines
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

The Frequency Domain

Sinusoidal tidal waves

Copy of Katsushika Hokusai The Great Wave off Kanagawa at http://commons.wikimedia.org/wiki/File:The_Great_Wave_off_Kanagawa.jpg

Page 2: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Domains Images can be represented in different domains

Spatial domain – the strength of light at points in space

Frequency domain – the strength of patterns within an image

Frequency domain is useful for Image analysis Image compression Efficient processing

2

Page 3: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Frequency Domain Various frequency domains

Discrete Cosine – used in image analysis and compression

Fourier – used in image analysis and processing Wavelet – used in image analysis and compression Haar and others …

Each domain defines a set of patterns from which all images can be composed

The DCT and DFT domains use sinusoidal patterns

3

Page 4: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Sinusoids A sinusoidal is characterized by the amplitude, frequency, and

phase

4

Page 5: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Functions into sinusoids Any function can be represented as the sum

of sinusoids Consider a one dimensional ‘square wave’. Can it be represented as the sum of ‘non-

square waves’?

2 4 6 8 10

-0.4

-0.2

0.2

0.4

Page 6: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

6

Decomposing functions into sinusoids

2 4 6 8 10

-1

-0.75

-0.5

-0.25

0.25

0.5

0.75

1

Start with a sin wave of the same frequency as the square wave. This is the “base” or “fundamental” frequency.

Page 7: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

7

Decomposing functions into sinusoids

Add a 3rd “harmonic” to the fundamental frequency. The amplitude is less than that of the base and the frequency

is 3 times that of the base.

2 4 6 8 10

-1

-0.75

-0.5

-0.25

0.25

0.5

0.75

1

Page 8: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

8

Decomposing functions into sinusoids

Add a 5th “harmonic” to the fundamental frequency. The amplitude is less than that of the base and the frequency

is 5 times that of the base.

2 4 6 8 10

-1

-0.75

-0.5

-0.25

0.25

0.5

0.75

1

Page 9: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

9

Decomposing functions into sinusoids

Add a 7th and 9th“harmonic” to the fundamental frequency.

2 4 6 8 10

-1

-0.5

0.5

1

Page 10: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

10

Decomposing functions into sinusoids

Adding all harmonics up to the 100th.

2 4 6 8 10

-0.75

-0.5

-0.25

0.25

0.5

0.75

Page 11: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Sinusoids (1D) Consider the following sinusoidal function

f can be understood as a row profile Amplitude is determined by A Phase (shift) is given by phi Frequency is controlled by u

if u = 1 there is one cycle spanning the image U can be understood as the ‘number of cycles per

image width’

11

Page 12: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Sinusoids (1D) as images

12

Page 13: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Discrete sinusoid Take the continuous sinusoidal function into

the discrete domain via sampling at ½ unit intervals.

One effect is to place an upper limit on the frequencies that can be captured via sampling.

U must be less than N/2 in order to be recoverable by the discrete samples. This is the Shannon-Nyquist limit.

Higher frequencies generate aliases

Page 14: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Aliasing example Consider a sinusoid such that u=1 over a span of 8 units. Consider a sinusoid such that u=7 over a span of 8 units. The resulting samples are identical. The two different

signals are indistinguishable after sampling and hence are aliases for each other.

Page 15: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Frequency Domain The central idea in frequency domain

representation is to Find a set of orthogonal sinusoidal patterns that

can be combined to form any image Any image can be expressed as the weighted sum

of these basis images. The DFT and DCT are ways of decomposing an

image into the sum of sinusoidal basis images

Page 16: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

How to determine the amplitudes? The DCT and DFT transformations are ways of

decomposing a spatial image into sinusoidal basis images.

The forward DCT goes from spatial to frequency. The inverse DCT goes from frequency to spatial.

The DCT and DFT are invertible – no loss of information either way

16

Page 17: The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at The_Great_Wave_off_Kanagawa.jpg.

Notional conventions