49
EECS 556 – Image Processing– W 09 2D SPACE SIGNALS/SYSTEMS

Lecture 6

Embed Size (px)

DESCRIPTION

mb

Citation preview

Page 1: Lecture 6

EECS 556 – Image Processing– W 09

2D SPACE SIGNALS/SYSTEMS

Page 2: Lecture 6

2D discrete‐space signals and systems

n,m are integers

We are going to study properties of these signals and their transformations

Page 3: Lecture 6

LSI (linear shift invariant) systems

An LSI system is completely specified by its impulse response.

sifting property of the delta function

superposition

Discrete convolution

Page 4: Lecture 6

2D Discrete‐Signal Fourier SeriesIf g[n,m] is periodic with period (N,M):

with

Page 5: Lecture 6

2D discrete‐space Fourier transform

2D discrete‐space Fourier transform (DSFT) of a 2D discrete‐space signal g[n,m] :

Inverse 2D DSFT:

Valid if g[n,m] has:  finite energy or absolutely summable

Page 6: Lecture 6

Convergence

If g absolutely summable:

then

If g is square summable(energy signal):

Page 7: Lecture 6

DSFT is periodic2D DSFT is periodic with period (2pi, 2pi):

Page 8: Lecture 6

Properties

Multiplication: [what’s FT in continous space? ]

(2pi ) periodic convolution

Notice

Page 9: Lecture 6

•Transpose

•Reflection property

•Rotational symmetry propertyIf g[n,m] has 2‐ 4‐ or 8‐fold rotational symmetry, then so does its 2D DSFT.

Properties

Page 10: Lecture 6

PropertiesShift:

Convolution:

Delta function:

Page 11: Lecture 6

Example: DSFT of moving average filter

],[],[91],)[(

,lnkmhlkfnmhf

lk−−=∗ ∑

111

111

111

h

Page 12: Lecture 6

Complex exponential

repeated periodically with horizontal period 2 pi and vertical period 2 pi

Special case:

Page 13: Lecture 6

Periodic signalsIf g[n,m] is periodic with period (N,M):

Page 14: Lecture 6

Sampling revisitedRelationship between spectra of original and sampled signals

This expressions holds regardless of whether the CS signal ga(x, y) is band‐limited!

Page 15: Lecture 6

ga (x,y) gd [n,m]

Page 16: Lecture 6
Page 17: Lecture 6

Magnitude and Phase

2D DSFT is generally complex

• Encode image using magnitude and phase [image encoding]• How to retrieve phase from magnitude [image restoration]• Reconstruct signal from just magnitude or phase

impossible unless….

Page 18: Lecture 6

Page 19: Lecture 6
Page 20: Lecture 6

inverse FT:

Page 21: Lecture 6

inverse FT:

Page 22: Lecture 6

inverse FT:

Why this is so bad? 

Page 23: Lecture 6

Inverse transform of

Autocorrelation of g!

Page 24: Lecture 6

Later in this course we will explore iterative techniques for extracting original image from phase of image spectrum 

Page 25: Lecture 6

LSI systems in Frequency‐domain 

• A LSI system is characterized completely by its frequency response

Good news:•BIBO stable iff its impulse response h[n,m] is absolutely summable•DSFT always exists for absolutely summable signals•H(wx, wy) always exists for stable LSI systems

Page 26: Lecture 6

Intro to Filter Design

Crucial in pre‐processing tasks such as•Noise removal (low pass filtering)•Enhancing (high pass filtering)

How to design a low‐pass filter in 2D?Let’s give a look at this 1D filter:

h[n] = [1/4   1/2    1/4]

Frequency response of this filter?

Page 27: Lecture 6

Designing a 1D low pass filter

h[n] = [1/4   1/2    1/4]

Page 28: Lecture 6

Designing a 1D low pass filter

h[n] = [1/4   1/2    1/4]

Since:

pi‐pi

unit delay or shift associated with this filter! 

It does actas a low pass filter!

Page 29: Lecture 6

Designing a 2D low pass filter

• In 2D:   h[n] = [1/4   1/2    1/4]

• How about this?

Page 30: Lecture 6

Designing a 2D low pass filter

Page 31: Lecture 6

Designing a 2D low pass filter

• H is real (due to Hermitian symmetry of h[n,m])

~ constantno shift!

Page 32: Lecture 6

‐ pi ‐ pi

Designing a 2D low pass filter

It doesn’t kill frequencies at pi  or ‐pi 

Page 33: Lecture 6

Designing a 2D low pass filter

Not a good 2D low pass filter:We would like a lowpass design that is zero along the edge of the ± pi ,± pi  box

Page 34: Lecture 6

],[],[91],)[(

,lnkmhlkfnmhf

lk−−=∗ ∑

111

111

111

h

Designing a 2D low pass filter

Not that good after all….

Page 35: Lecture 6

Designing a 2D low pass filter

Let’s try his:

Notice: this is separable

Page 36: Lecture 6

Designing a 2D low pass filter

Let’s try his:

Notice: this is separable

Let’s look see at 45o slice: 

This filter design is not circularly symmetric!

Page 37: Lecture 6

Rotation invarianceCS: rotation invariant if rotating any input image causes the output image to rotate by the same amount

Page 38: Lecture 6

What should we expect after filtering with 

Page 39: Lecture 6
Page 40: Lecture 6

Designing a 2D low pass filter

Let’s try again!This time we start from the frequency domain

In 1D we liked 

2D filter with the following circularly symmetric frequency response

Page 41: Lecture 6

Designing a 2D low pass filter

•This  is not FIR but IIR 

•There is no analytical solution for the inverse 2D DSFT of this spectrum 

•Trick: use matlab to get h[n,m]

‐ design H in the frequency domain‐ use ifft2.m to estimate h (numerical solution)

Page 42: Lecture 6
Page 43: Lecture 6
Page 44: Lecture 6

Designing a 2D low pass filterIf we don’t care about having a FIR filter, then let’s look at the ideal low pass filter:

(2pi, 2pi)

Let’s compute h[n,m]…

We can use the sampling theorem: h[n,m]  is sampled from some ha(x, y)

We follow 3 steps:

Page 45: Lecture 6

1. Let’s find the spectrum of ha

(2pi, 2pi)

Page 46: Lecture 6

2. Compute inverse FT of Ha

Page 47: Lecture 6

3. Compute inverse FT of Ha

Page 48: Lecture 6
Page 49: Lecture 6

Polar coordinates