Docsity

Wavelets & Filter Banks: Signal & Image Processing with Finite Signals & Circulant Matrice, Slides of Banking and Finance

Partial preview of the text

Download Wavelets & Filter Banks: Signal & Image Processing with Finite Signals & Circulant Matrice and more Slides Banking and Finance in PDF only on Docsity!

Course 18.327 and 1.

Wavelets and Filter Banks

Signal and Image Processing: finite

length signals; boundary filters and

boundary wavelets; wavelet

compression algorithms.

2

Finite-Length Signals

x[n] H(ωωωω) y[n]

y

y

y

0

y

1

y

N-

h

0

h

1

h

0

h

h

2

h

1

h

0

h

h

1

h

0

h

x

x

x

0

x

1

x

N-

unknown

length N

(finite length)

unknown

3

artificial edge resulting

from zero-padding

  1. zero-padding

n

x[n]

filtered by [1, 1]

n

n

y[n]

y[n]

filtered by [1, -1]

4

  1. Periodic Extension

- 1 0 1 2 N-1 N

n

x[n]

x[N] = x[0]

y

0

y

1

y

N-

h

1

h

0

h

h

 h

2

h

1

h

1

h

0

h

 h

3

h

2

h

h

 h

2

h

1

h

0

x

N-

x

N-

x

0

x

1

x

2

x

N-

x

0

wrap-around

N-output circulant matrix = H

7

  1. Symmetric Extension

  2. Whole point symmetry – when filter is whole

point symmetric.

  1. Half point symmetry – when filter is half point

symmetric.

e.g. Whole point symmetry: filter and signal

h

1

x

2

  • h

0

x

1

  • h

1

x

0

h

0

h

1

x

2

h

1

x

1

  • h

0

x

0

  • h

1

x

1

h

1

h

0

h

1

x

1

h

1

x

0

  • h

0

x

1

  • h

1

x

2

h

1

h

0

h

1

x

0

   

x

1

x

2

8

e.g. whole point symmetry – filter,

half-point symmetry - signal

h

1

x

2

  • h

0

x

1

  • h

1

x

0

h

1

h

0

h

1

x

2

h

1

x

1

  • h

0

x

0

  • h

1

x

0

h

1

h

0

h

1

x

1

h

1

x

0

  • h

0

x

0

  • h

1

x

1

h

1

h

0

h

1

x

0

h

1

x

0

  • h

0

x

1

  • h

1

x

2   

x

0

x

1

x

2

Half point symmetry Whole point symmetry

9

Downsampling a whole-point symmetric signal with

even length N

at the left boundary:

0 1

-1 2

x x

ŸŸŸŸ still whole-point symmetric after ↓↓↓↓2.

x

x

x

at the right boundary:

ŸŸŸŸ half-point symmetric after ↓↓↓↓2.

N-

odd

E.g. 9/7 filter: whole-point symmetric

use the above extension for signal ŸŸŸŸ N

N/

N/

exactly

10

Downsample a half-point symmetric signal

x

x

x

ŸŸŸŸ nothing guaranteed

Linear-phase filters

H(ωωωω) = A(ωωωω)e

-iωαωαωαωα

  1. half-point symmetric, αααα = fraction

  2. whole-point symmetric, αααα = integer

Symmetric extension of finite-length signal

X(ωωωω) = B(ωωωω)e

-iωβωβωβωβ

13

Then, a x

0

x

= [1 -1 1 -1] b = [1 -1 1 -1] A

x

1

c x

2

d x

3

PDE

f(x) = ¦¦¦¦ c

k

φφφφ(x – k)

Assume f(x) has polynomial behavior near boundaries

¦ α αα

α

i

x

i

= f(x) = ¦ ¦¦

¦ c

k

φ φφ

φ(x – k)

{φφφφ (•••• - k)} orthonormal

ŸŸŸŸ ¦¦¦¦ αααα

i

³³³³ φφφφ(x – k)x

i

dx = c

k

k

p-

i=

p-

i=

μ μμ

μ

i

k

k

14

μ μμ

μ

0

μ μμ

μ

1

 μ μμ

μ

p-

α αα

α

0

c

0

μμμμ

0

μμμμ

1

μμμμ

2

 αααα

1

c

1

α αα

α

p-

c

p-

0 0 0

1 1

1

Using the computed α αα

α

i

’s, we can extrapolate,

e.g. c

= [μ μμ

μ

0

μ μμ

μ

1

 μ μμ

μ

p-

]

–1 –

αα αα

0

αα αα

p-

DCT idea of symmetric extension

cf. DFT X[k] = ¦¦¦¦ x[n]e

-i n

2 ππππk

N

n

complex-valued

Want real-valued results.

15

0 1  N-1 N  2N-1 2N

DFT of this extended signal:

¦¦¦¦ x[n]e

–i n

  • ¦¦¦¦ x[2N-1-n]e

-i n

2 ππππk

2N

2 ππππk

2N

N-

n=

2N-

n=N

¦ x[m]e

-i (2N-1-m)

2 ππππk

2N

N-

m=

¦ x[n] {e

-i n

  • e

-i (2N-1-n)

X(k) c

k

¦¦¦¦  x[n]cos (n+½)  DCT – II used in JPEG

c

k

2 ππππk

2N

2 ππππk

2N

π ππ

πk

N

2

N

N-

n=

N-

n=

1

 2

k = 0

1 k = 1, 2, …, N - 1