2d image fourier spectrum. image fourier spectrum fourier transform -- examples

28
2D Image Fourier Spectrum

Upload: gladys-edwards

Post on 25-Dec-2015

247 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

2D Image Fourier Spectrum

Page 2: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Image Fourier spectrum

Fourier Transform -- Examples

Page 3: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

3

Phase and Magnitude

• Curious factAll natural images have very similar magnitude transform.So why do they look different…?

• DemonstrationTake two pictures, swap the phase transforms, compute the inverse - what does the result look like?

Phase in images matters a lot (more than magnitude)

Page 4: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

4

Slide: Freeman & Durand

Page 5: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

5

Slide: Freeman & Durand

Page 6: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

6

Reconstruction with zebra phase, cheetah magnitude

Slide: Freeman & Durand

Page 7: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

7

Reconstruction with cheetah phase, zebra magnitude

Slide: Freeman & Durand

Page 8: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Convolution

1

0

1

0

1

0

),(),(

),(),(),(*

)()(

)()()(*

N N

N

yxgf

ddyxgfyxgf

xgf

dxgfxgf

:discrete) s,(continuou 2D

:discrete) s,(continuou 1D

Page 9: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Spatial Filtering Operations

h(x,y) = 1/9 S f(n,m)(n,m)

in the 3x3 neighborhood

of (x,y)

Example

3 x 3

111

111

111

9

1),( yxf

Page 10: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Salt & Pepper Noise

3 X 3 Average 5 X 5 Average

7 X 7 Average Median

Noise Cleaning

Page 11: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Salt & Pepper Noise

3 X 3 Average 5 X 5 Average

7 X 7 Average Median

Noise Cleaning

Page 12: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

x derivativeGradient magnitude

y derivativex

f

y

f

22yx fff

11),( yxf

1

1),( yxf

),(),1( yxfyxf ),()1,( yxfyxf

Page 13: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Vertical edges Horizontal edges

Edge Detection

x

f

y

f

Image f

Page 14: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Convolution Properties• Commutative:

f*g = g*f• Associative:

(f*g)*h = f*(g*h)• Homogeneous:

f*(g)= f*g• Additive (Distributive):

f*(g+h)= f*g+f*h• Shift-Invariant

f*g(x-x0,y-yo)= (f*g) (x-x0,y-yo)

Page 15: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

The Convolution Theorem

xgxfxgxf

and similarly:

xgxfxgxf

Page 16: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Salt & Pepper Noise 3 X 3 Average

5 X 5 Average 7 X 7 Average

Going back to the Noise Cleaning example…

111

111

111

9

1

Convolution with a rect Multiplication with a sinc in the Fourier domain

= LPF (Low-Pass Filter)

Wider rect Narrower sinc = Stronger LPF

Page 17: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

What is the Fourier Transform of ?

Examples

rectrect

xf

*

{sinc}*{sinc}

sinc}{sinc)}({

*

2)()(xf

2sinc)( xf

Page 18: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Image Domain Frequency Domain

Page 19: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

The Sampling Theorem

(developed on the board)Nyquist frequency, Aliasing, etc…

Page 20: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

• Gaussian pyramids

• Laplacian Pyramids

• Wavelet Pyramids

Multi-Scale Image Representation

Good for:- pattern matching- motion analysis- image compression- other applications

Page 21: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Image Pyramid

High resolution

Low resolution

Page 22: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

search

search

search

search

Fast Pattern Matching

Page 23: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

2)*( 23 gaussianGG

1G

The Gaussian Pyramid

High resolution

Low resolution

Image0G

2)*( 01 gaussianGG

2)*( 12 gaussianGG

2)*( 34 gaussianGG

blur

blur

blur

down-sample

down-sample

down-sampleblurdown-sample

Page 24: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

expand

expand

expand

Gaussian Pyramid Laplacian Pyramid

The Laplacian Pyramid

0G

1G

2GnG

- =

0L

- =1L

- = 2Lnn GL

)expand( 1 iii GGL

)expand( 1 iii GLG

Page 25: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

- =

Laplacian ~ Difference of Gaussians

DOG = Difference of Gaussians

More details on Gaussian and Laplacian pyramidscan be found in the paper by Burt and Adelson(link will appear on the website).

Page 26: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Computerized Tomography (CT)

f(x,y)

)(1 xp )(2 xp

dyyxfxp ),()(

)0,()( uFuP

u

vF(u,v)

Page 27: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

Computerized Tomography

Original (simulated) 2D image

8 projections-Frequency

Domain

120 projections-Frequency

Domain

Reconstruction from8 projections

Reconstruction from120 projections

Page 28: 2D Image Fourier Spectrum. Image Fourier spectrum Fourier Transform -- Examples

End of Lesson...

Exercise#1 -- will be posted on the website.

(Theoretical exercise: To be done and submitted individually)