Docsity

Course Outline - Mathematical Methods Signal Processing | EECS 551, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Course Outline - Mathematical Methods Signal Processing | EECS 551 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

DISCRETE WAVELETS AND FILTER BANKS

AND MULTIRATE DIGITAL SIGNAL PROCESSING

Andrew E. Yagle Dept. of Electrical Engineering and Computer Science The University of Michigan, Ann Arbor MI

©c 1996 by Andrew E. Yagle (Preliminary version)

OUTLINE OF PRESENTATION

  1. Review of Digital Signal Processing 1.1 z-Transform 1.2 Discrete-Time Fourier Transform (DTFT) 1.3 Discrete-Time Frequency Response
  2. Multirate Digital Signal Processing 2.1 Upsampling 2.2 Downsampling 2.3 Multirate Signal Processing 2.4 Applications of Multirate SP 2.5 Subband Coding 2.6 Polyphase Transforms
  3. Perfect-Reconstruction Filter Banks 3.1 Quadrature-Mirror Filters (QMF) 3.2 Orthogonal 2-Channel Filter Banks 3.3 Filter Design 3.4 Subband Coding=Discrete Wavelet Xform

1.2 Discrete-Time Fourier Transform (DTFT)

Digital or discrete-time signal or sequence: x(n) = { 3 , 1 , 4 , 1 , 5 , 9 , 2 , 6 , 5.. .}(x(0) = 3)

DT F T {x(n)} = X(ejω^ ) =

∑^ ∞

n=−∞

x(n)e−jωn^ = X(z)|z=ejω

= 3 + 1e−jω^ + 4e−^2 jω^ + 1e−^3 jω^ + 5e−^4 jω^ +...

DT F T −^1 {X(ejω^ )} = x(n) =

2 π

∫ (^) π

−π

X(ejω^ )ejωndω

Properties of DTFT:

  1. Also maps convolution to multiplication: w(n) = x(n) ∗ y(n) → W (ejω^ ) = X(ejω^ )Y (ejω^ )
  2. Delay: DT F T {x(n − D)} = e−jωD^ X(ejω^ ).
  3. Compare to discretized Fourier transform: F{x(t)

n=−∞ δ(t^ −^ n)}^ =^ DT F T^ {x(n)} DTFT is F of sampled cont.-time signal.

  1. PERIODIC in ω with period 2π.
  2. DUAL of Fourier SERIES: x(n) are the Fourier series coeffs of the periodic function X(ejω^ ).
  3. DTFT is Z evaluated on unit circle |z| = 1.

1.3 Discrete-Time Frequency Response

NOTE: discrete in one Fourier domain ↔periodic in other Fourier domain. EXAMPLES: Fourier series, DTFT. SYSTEM: Linear (discrete)time-invariant with discrete-time impulse response h(n). STEADY-STATE INPUT: cos(ωon) Note this is a SAMPLED sinusoid. STEADY-STATE OUTPUT: M cos(ωon + θ) for some amplitude M and phase shift θ.

cos(ωon) → h(n) → |H(ejωo^ )| cos(ωon+ARG[H(ejωo^ )])

where H(ejω^ ) = DT F T {h(n)}=freq. response. Just like phasors and cont. freq. response, except now everything PERIODIC in ω. Lowpass and Highpass Filters

h(n) =

sin(an) πn

↔ H(ejω^ ) =

1 , if |ω| < a; 0 , if a < |ω| < π

h(n)(−1)n^ ↔ H(ej(ω+π))

Modulate by (−1)n: lowpass→highpass

2. MULTIRATE DIGITAL SIGNAL PROCESSING

2.1 Upsampling

x(n) = { 3 , 1 , 4 , 1 , 5 , 9 , 2 , 6 , 5.. .}(x(0) = 3) The upsampled (by 2) signal xu(n) is xu(n) = { 3 , 0 , 1 , 0 , 4 , 0 , 1 , 0 , 5 , 0 , 9.. .} x(n) →↑ 2 → xu(n); xu(n) =

x(n/2), if n is even 0 , if n is odd In the frequency domain: Xu(ejω^ ) = X(e^2 jω^ ) now has period π:

Can recover x(n) from xu(n):

  1. First lowpass filter |ω| < π 2
  2. Then downsample (see below). Interpolate x(n): upsample+lowpass filter

Filtering replaces zeros in xu(n) with values obtained from sampling a bandlimited continuous-time signal.

2.2 Downsampling

x(n) = { 3 , 1 , 4 , 1 , 5 , 9 , 2 , 6 , 5.. .}(x(0) = 3) The downsampled (by 2) signal xd(n) is xu(n) = { 3 , 4 , 5 , 2 , 5 , 5.. .} x(n) →↓ 2 → xd(n); xd(n) = x(2n) In the frequency domain: Xd(ejω^ ) = [X(ejω/^2 ) + X(ej(ω+2π)/^2 )]/2 aliased

Can recover x(n) from xd(n) ONLY IF X(ejω^ ) = 0 for |ω| > π 2 ↔ X(ejω^ ) bandlimited ↔ x(t) oversampled × 2

Can lowpass x(n), then downsample. Decimate x(n): lowpass filter+downsample

Since the lowpass-filtered signal is now oversam- pled, we can subsample without losing information.

2.4 Applications of Multirate SP

  1. Interfacing systems with different clock rates
  2. Implement fractional time delays H(ejω^ ) = ejωD^ , D rational All-pass, linear phase filter
  3. Narrowband lowpass filters: a. Have signal sampled at 8 kHz Want lowpass filter with cutoff=80 Hz b. Decimate signal by (^2) ×^8 kHz 80 Hz = 50 All but lowest 80 Hz of the signal aliased, but DON’T CARE! c. Implement lowpass filter at decimated rate →FIR filter much shorter
  4. Can implement multirate filtering in several smaller stages of decimation/interpolation, instead of doing it all in one big stage.

2.5 Subband Coding

IDEA: Divide up speech signal into frequency bands, each band an octave (factor of 2) wide.

  1. Code each band separately.
  2. Each stage splits lowpass signal from previous band into low(er)pass and highpass signals.
  3. Each stage is the first half (analysis part) of a quadrature mirror filter (QMF) (see below)

3. PERFECT-RECONSTRUCTION FILTER BANKS

Split up signal into different frequency bands. Then reassemble bands into original signal.

3.1 Quadrature-Mirror Filters

  1. H 0 (ejω^ )=lowpass filter
  2. H 1 (ejω^ )=mirror-image highpass filter: H 1 (ejω^ ) = H 0 (ej(ω+π)); h 1 (n) = (−1)nh 0 (n) H 1 (ejω^ ) is reflection of H 0 (ejω^ ) about ω = π 2.
  3. Why do we need these mirror conditions?
  4. In sequel use H(ω) instead of H(ejω^ ).

3.1 Quadrature-Mirror Filters, continued

  1. Condition for perfect reconstruction (ˆx(n) = x(n)):

a. Signal at midpoint of top rail is Xuppermid(ω) = [H 0 ( ω 2 )X( ω 2 )+H 0 ( ω+2 2 π)X( ω+2 2 π)]/ 2 using decimation formula above.

b. Signal at midpoint of lower rail is Xlowermid(ω) = [H 1 ( ω 2 )X( ω 2 )+H 1 ( ω+2 2 π)X( ω+2 2 π)]/ 2 using decimation formula above.

c. Output signal is Xˆ(ω) = G 0 (ω)Xuppermid(2ω)+G 1 (ω)Xlowermid(2ω) using interpolation formula above.

d. Condition for perfect reconstruction is X(ω) = Xˆ(ω) = [G 0 (ω)H 0 (ω)+G 1 (ω)H 1 (ω)]X(ω)/ 2 +[G 0 (ω)H 0 (ω+π)+G 1 (ω)H 1 (ω+π)]X(ω+π)/ 2 by substituting (b) in (c).

3.2 Orthogonal 2-Channel Filter Banks

Now make a slight but significant change: g(n) = ±time − reversed f ilters h(−n)

G 0 (ω) = H 0 (−ω); G 1 (ω) = H 1 (−ω)

g 0 (n) = h 0 (2N − 1 − n); g 1 (n) = h 1 (2N − 1 − n)

Also g 1 (n) = (−1)ng 0 (2N − 1 − n) (V&K, p.125)

Repeating above→Smith-Barnwell condition

|H 0 (ω)|^2 + |H 0 (ω + π)|^2 = 2 |G 0 (ω)|^2 + |G 0 (ω + π)|^2 = 2 instead of H 02 (ω)−H 12 (ω) = H 02 (ω)−H 02 (ω+π) = 2ejω(2N^ −1) Interpretation: Power complementary.

Also get G 0 (ω)G 1 (−ω) + G 0 (ω + π)G 1 (π − ω) = 0

instead of the aliasing=0 condition G 0 (ω)H 0 (ω + π) + G 1 (ω)H 1 (ω + π) = 0.

3.2 Orthogonal 2-Channel Filter Banks, cont.

Using V&K modulation matrix notation:

BIorthogonal QMFs

G 0 (ω)H 0 (ω) + G 1 (ω)H 1 (ω) = 2 G 0 (ω)H 0 (ω + π) + G 1 (ω)H 1 (ω + π) = 0 can be written as [ G 0 (ω) G 1 (ω) G 0 (ω + π) G 1 (ω + π)

] [

H 0 (ω) H 0 (ω + π) H 1 (ω) H 1 (ω + π)

]

[

Orthogonal 2-Channel Filter Banks

|G 0 (ω)|^2 + |G 0 (ω + π)|^2 = 2 G 0 (ω)G 1 (−ω) + G 0 (ω + π)G 1 (π − ω) = 0 can be written as [ G 0 (ω) G 1 (ω) G 0 (ω + π) G 1 (ω + π)

] [

G 0 (−ω) G 0 (π − ω) G 1 (−ω) G 1 (π − ω)

]

[

G 0 , 0 G 0 , 1

G 1 , 0 G 1 , 1

] [

G 0 , 0 G 0 , 1

G 1 , 0 G 1 , 1

]H

[

]

consistent with g(n) = ±h(−n).

3.4 Subband Coding=Discrete Wavelet Xform

At each mth^ stage, signal is split into:

  1. A detail (highpass) signal W 2 m^ x(n)
  2. An average (lowpass) signal xm(n)
  3. Each stage is the first half (analysis part) of a quadrature mirror filter (QMF)!
  4. Can reassemble signal from a. its detail signals and b. the final average signal using second half (synthesis part) of QMF Analysis (Compute Wavelet Xform) average: xm(n) =

i xm−^1 (i)h^0 (2n^ −^ i) detail: W 2 m^ x(n) =

i xm−^1 (i)h^1 (2n^ −^ i) These formulae combine filtering and subsampling. Synthesis (Reconstruct Signal) xm− 1 (n) =

i h^0 (2i−n)xm(i)+h^1 (2i−n)W^2 m^ x(i) Note time reversal between analysis and synthesis.

3.4 Subband Coding=Discrete Wavelet Xform, cont.

Can also use direct definitions: Analysis (Compute Wavelet Xform) average: xm(n) =

i x(i)h

m 0 (2mn − i)

detail: W 2 m^ x(i) =

i x(i)h

m 1 (2mn − i)

Synthesis (Reconstruct Signal) x(n) =

∑L

m=

i W^2 m^ x(i)h

m 1 (

mi − n)

i xL(i)h

L 0 (

Li − n)

Filters at Each Resolution hm 0 +1(n) =

i h^0 (i)h

m 0 (n^ −^2

mi) hm 1 +1(n) =

i h^1 (i)h

m 0 (n − 2 mi)

Orthogonality of Basis Functions < hm 1 (2mn−i), hm

′ 1 (

m′ n′ (^) −i) >= δ(m−m′)δ(n−n′) < hm 1 (2mn − i), hm

′ 0 (

m′ n′ (^) − i) >= 0, f or m′ (^) > m < hm 0 (2mn − i), hm 0 (2mn′^ − i) >= δ(n − n′) where < f (n), g(n) >=

n f^ (n)g

∗(n) if < ∞.