wavelets, filter banks and multiresolution signal processing · orthonormal bases of wavelets •...

47
Introduction - 1 Wavelets, Filter Banks and Multiresolution Signal Processing “It is with logic that one proves; it is with intuition that one invents.” Henri Poincaré

Upload: others

Post on 25-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 1

Wavelets, Fi l ter Banks and Multiresolution Signal Processing

“ I t is wi th logic that one proves;i t is wi th intui t ion that one invents.”

Henr i Poincaré

Page 2: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 2

A bit of history: from Fourier to Haar to wavelets

Old topic: representations of functions

1807: Joseph Fourier upsets the French Academy

1898: Gibbs’ paper 1899: Gibbs’ correction

++=

Page 3: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 3

1910: Alfred Haar discovers the Haar waveletdual to the Fourier construction

Why do this? What makes it work?• basic atoms form an orthonormal set

Note• s ines/cosines and Haar funct ions are ON bases for• both are structured orthonormal bases• they have di fferent t ime and frequency behavior

+++=

L2 ℜ( )

Page 4: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 4

1930: Heisenberg discovers that you cannot have your cake and eat i t too!

Uncertainty principle• lower bound on TF product

t w

w

w

t

t

perfectly localin time

perfectly localin frequency

trade-off

f t( )

f t( )

f t( )

F ω( )

F ω( )

F ω( )

w

t

Page 5: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 5

1945: Gabor localizes the Fourier transform ⇒ STFT

1980: Morlet proposes the continuous wavelet transform

short-t ime Fourier transform wavelet transform

time

frequency

time

frequency

Page 6: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 6

Analogy with the musical scoreBach knew about wavelets!

Page 7: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 7

Time-frequency t i l ing for a sine + Delta

t

f

t

f

t

f

t

f

t

t0 T

t0 T t0 T

t0 T t0 T

f

FT

STFT WT

so.. . .

what is a good basis?

Page 8: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 8

1983: Lena discovers pyramids (actually, Burt and Adelson)

+-

x x

MR encoder MR decoder

D II

+

coarse

residual

Page 9: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 9

1984: Lena gets crit ical(subband coding)

f1

f2π

−π

−π

π LL LH HL HH

H1 2

H0 2

H1 2

H0 2

HL 2

HΗ 2

H1

H0

HH

HL

LH

LL

x

horizontalvertical

Page 10: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 10

1986: Lena gets formal. . .(multiresolution theory by Mallat, Meyer. . . )

= +

Page 11: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 11

Wavelets, f i l ter banks and multiresolution analysis

Filter banks(DSP)

Wavelets(applied mathematics)

Multiresolution signal analysis(computer vision)

Construction of bases for

signal expansions

x ψi x,⟨ ⟩ψi∑=

+=

Page 12: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 12

Wavelets. . .

‘ ‘Al l th is t ime, the guard was looking at her,f i rst through a te lescope,

then through a microscope,and then through an opera glass. ’ ’

Lewis Carrol l , Through the Looking Glass

Page 13: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 13

. . . what are they and how to build them?

Orthonormal bases of wavelets• Haar ’s construct ion of a basis for (1910)• Meyer, Batt le-Lemarié, Stromberg (1980’s)• Mal lat and Meyer ’s mult i resolut ion analysis (1986)

Wavelets from iterated f i l ter banks• Daubechies’ construction of compactly supported wavelets• smooth wavelet bases for and computational algorithms

Relation to other constructions• successive ref inements in graphics and interpolat ion• mult i resolut ion in computer v is ion• mult igr id methods in numerical analysis• subband coding in speech and image processing

Goal: f ind ψ(t) such that i ts scales and shifts form an orthonormal basis for .

L2 ℜ( )

L2 ℜ( )

L2 ℜ( )

Page 14: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 14

Why expand signals?

Suppose

Advantages• easier to analyze signal in pieces: “div ide and conquer”• extracts important features• pieces can be treated in an independent manner

original coarse detail

signal block 1 block 2

signal

++

=== projection x elementary signalsΣ

+=

Page 15: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 15

Example: Example:

• or thogonal basis• biorthogonal basis• t ight f rame

Note• or thonormal basis has successive approximat ion

property, b ior thogonal basis and frames do not• quant izat ion in orthogonal case is easy,

unl ike in the other cases

ℜ2

ϕ1

ϕ0

e0

e1e1 ϕ1= ~

ϕ1

e0 ϕ0=

ϕ1 e1

e0 ϕ0=

ϕ2ϕ0~

Page 16: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 16

Why not use Fourier?

Block Fourier transform: bad frequency localization

Gabor transform: i l l -behaved for crit ical sampling

Balian-Low theorem: there is no local Fourier basis with good t ime and frequency localization

• however: good local cosine bases!

• shi ft and modulat ion

t

t

ω

ω

1/ω

1/ωα, α > 1

Page 17: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 17

How do f i l ter banks expand signals?

Analogy

2

2

2

2

x

analysis synthesisH1

H0

G1

G0

y1

y0 x0

x1

+ x̂

beam of

white light

Page 18: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 18

. . .and multiresolution analysis?

IDEA: successive approximation/refinement of the signal

original

coarse 1

coarse 2

detail 1detail 1

detail 2 ++

+ =

=

=

Page 19: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 19

. . . how about wavelets?

“mother” wavelet ψ

Who?• fami l ies of funct ions obtained from “mother” wavelet

by di lat ion and translat ion

Why?• wel l local ized in t ime and frequency• i t has the abi l i ty to “zoom”

Page 20: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 20

Haar system

Basis functions

Basis functions across scales

ψ t( )1 0 t 0.5<≤1– 0.5 t 1<≤0 else⎩

⎪⎨⎪⎧

=

ψm n, t( ) 2 m/2–ψ 2 m– t n–( )=

t

t

t

m = 0

m = 1

m = -1

Page 21: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 21

Haar system.. .. . . as a basis for L2 ℜ( )

1 2 3 4 56 7 8

0-8 -7 -6 -5 -4 -3

-2-1

f (0)

1 2 3 4 57 8

0-8 -7 -6 -5 -4 -3

-1

f (1)

24

80

-8-6

-5 -4d (1)

80-8 -5-7 -6 -4

-3 -2 -1 1 2 3 4 5 6 7

f (2)

8-8 -7-5

-3-1 1 3 4 5

7d (2)

t

t t

t t

+

+

=

=

=

geometric proof

Page 22: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 22

Haar system.. .. . . scaling function and wavelet

The Haar scaling function(indicator of unit interval)

helps in the construction of the wavelet, since

and satisfies a two-scale equation

Note: • Haar wavelet a bi t too

t r iv ia l to be useful . . .1

1ϕ(2t) + ϕ(2t-1)

1

1ϕ(t)

1

1

1

ϕ(t)1

1

1

ϕ(2t) − ϕ(2t−1)1

1ϕ(t)

=

=

ϕ t( )1 0 t 1<≤0 else⎩

⎨⎧

=

ψ t( ) ϕ 2t( ) ϕ– 2t 1–( )=

ϕ t( ) ϕ 2t( ) ϕ 2t 1–( )+=

Page 23: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 23

Discrete version of the wavelet transform

Compute WT on a discrete grid

m = -1

m = 0

m = 1

scale shift

Page 24: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 24

Perfect reconstruction f i l ter banks

Perfect reconstruction:

Orthogonal system:

2

2

2

2

x

analysis synthesisH1

H0

G1

G0

y1

y0 x0

x1

+ x̂

ππ/2

H0 H1

magnitude responses of analysis filters

G0H0 G1H1+ I=

H0( )*H0 H1( )*H1+ I= G0 H1( )*=

Page 25: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 25

Daubechies’ construction.. .. . . i terated f i l ter banks

Iteration wil l generate an orthonormal basis for the space of square-summable sequences

Consider equivalent basis sequences and (generates octave-band frequency analysis)

Interesting question: what happens in the l imit?

l2 ℑ( )G12

G02

G12

G02

G12

G02

++

+

G0i( ) z( ) G1

i( ) z( )

ππ/2π/4π/8

Page 26: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 26

Daubechies’ construction.. .. . . i teration algorithm

At ith step associate piecewise constant approximation of length with

Fundamental l ink between discrete and continuous t ime!

1/2i

g0i( ) n[ ]

0 1 2

Time

0

0.2

0.4

0.6

0.8

Amplitude

0 1 2

Time

-0.2

0

0.2

0.4

0.6

0.8

Amplitude

0 1 2

Time

-0.2

0

0.2

0.4

0.6

0.8

Amplitude

0 1 2

Time

-0.2

0

0.2

0.4

0.6

0.8

Amplitude

i = 1

i = 4 i = 3

i = 2

Page 27: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 27

Daubechies’ construction.. .. . .scaling function and wavelet

• Haar and sync systems: either good time OR frequency localization• Daubechies system: good time AND frequency localization

Finite length, continuous and , based on L=4 iterated filterMany other constructions: biorthogonal, IIR, multidimensional...

0.5 1.0 1.5 2.0 2.5 3.0

Time

-0.25

0

0.25

0.5

0.75

1

1.25Amplitude

8.0 16.0 24.0 32.0 40.0 48.0

Frequency [radians]

0

0.2

0.4

0.6

0.8

1

Magnitude response

0.5 1.0 1.5 2.0 2.5 3.0

Time

-1

-0.5

0

0.5

1

1.5

Amplitude

8.0 16.0 24.0 32.0 40.0 48.0

Frequency [radians]

0

0.2

0.4

0.6

0.8

1

Magnitude response

scalingfunction

wavelet

ϕ t( ) ψ t( )

Page 28: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 28

Daubechies’ construction.. .. . . two-scale equation

Hat function

Daubechies’ scaling function

ϕ t( ) cnϕ 2t n–( )n∑=

=

0.5 1.0 1.5 2.0 2.5 3.0

Time

0

0.5

1

1.5

Amplitude

0.5 1.0 1.5 2.0 2.5 3.0

Time

-0.25

0

0.25

0.5

0.75

1

1.25

Amplitude

=

Page 29: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 29

Not every discrete scheme leads to wavelets

How do we know which ones wil l?. . . wait and see.. .

-1 -1

0 0biorthogonalfilter banks

quadratic spline

0

1 1

33

0

33

Page 30: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 30

Applications

“That which shr inks must f i rst expand.”

Lao-Tzu, Tao Te Ching

CompressionCommunications

DenoisingGraphics

Page 31: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 31

What is mult iresolution?

High resolution Low resolutionsubtract info

add info

= +

Page 32: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 32

. . . and why use multiresolution?

A number of applications require signals to be processed and transmitted at multiple resolutions and multiple rates

• d igi ta l audio and video coding• conversions between TV standards• digi ta l HDTV and audio broadcast• remote image databases with searching• storage media with random access• MR coding for mult icast over the Internet• MR graphics

Compression: sti l l a key technique in communications

Page 33: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 33

Multiresolution compression.. .. . . the DCT versus wavelet game

Questiongiven Lena (you have never seen before), what is the ‘ ‘best ’ ’ t ransform to code i t?

Fourier versus wavelet bases• l inear versus octave-band frequency scale• DCT versus subband coding• JPEG versus mult i resolut ion

Multiresolution source coding• successive approximat ion• browsing• progressive transmission

Page 34: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 34

Compression systems based on l inear transforms

Goal: remove built- in redundancy, send only necessary info

• LT: l inear t ransform (KLT, WT, SBC, DCT, STFT)• Q: quant izat ion• EC: entropy coding

LT Q EC 0100101001

0.5 bits/pixel8 bits/pixel

Page 35: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 35

Gibbs phenomenon

“Blocking” effect in image compression

Wavelets• smooth t ransi t ions• mult iscale propert ies• mult i resolut ion

Page 36: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 36

A rate-distort ion primer. . .

Compression: rate-distortion is fundamental trade-off• more bi t rate ⇒ less distort ion• less bi t rate ⇒ more distort ion

Standard image coder• operates at one part icular point on D(R) curve

Multiresolution coder ( layered, scalable)• t ravels rate-distort ion curve (successive approximat ion)• computat ion scalabi l i ty

distortion

rate

x

x

x

xx

x x

DSA(R)D(R)

Page 37: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 37

Best image coder?.. . wavelet based!

Shapiro’s embedded zero-tree algorithm (EZW)

• standard wavelet decomposi t ion (biorthogonal)• b i t p lane coding and zero-tree structure• beats JPEG whi le achieving successive approximat ion

DWT

bit planecoding

zerotrees

adaptiveentorpycoding

distortion

rate

x

x

x

xx

x x

JPEGEZW

Page 38: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 38

Next image coding standard.. . JPEG 2000

All the best coders based on wavelets• 24 ful l proposals and a few part ia l ones• 18 used wavelets, 4 used DCT and 5 used others• top 75% are wavelet-based• top 5 use advanced wavelet or iented quant izat ion• systems requirements ask for mult i resolut ion

Final JPEG 2000 standard is wavelet based

Page 39: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 39

Digital video coding

• s ignal decomposi t ion for compression• compat ib le subchannels• t ight control over coding error• easy jo int source/channel coding• robustness to channel errors• easy random access for digi ta l storage

MRprocessing

block

variety ofscales andresolutions

Page 40: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 40

Conversion between TV formats

• HDTV/NTSC• inter laced/progressive

50Hz

USA

60Hz Europe

Page 41: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 41

Interaction of source and channel coding

full reconstruction coarse reconstruction

MRcoder

high priorityhigh protection

low prioritylittle protection

Page 42: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 42

MR transmission for digital broadcast

Embedding of coarse information within detai l• c loud: carr ies coarse info• satellite: carries detail• b lend MR transmission with MR coding

Trade-off in broad-cast ranges [miles]

cloud withsatellites

ai

bi

SR IR MR: λ = 0.5, 0.2

16

63

24

401445

28

high/low resolution

Page 43: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 43

MR coding for mult icast over the Internet

‘ ‘ I want to say a special welcome to everyonethat ’s c l imbed into the Internet tonight, and has got into the

MBone --- and I hope i t doesn’ t a l l col lapse! ’ ’

Mick Jagger, Rol l ings Stones on Internet,11/18/94

Motivation: Internet is a heterogeneous mess!

Video multicast over Mbone • v ideo by VIC• software encoder/decoder• learning exper ience

(seminars. . . )

Heterogeneous user population

On-going experienceATM

64

1M

LAN

6464

1M1M

LAN

Page 44: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 44

MR coding for mult icast over the Internet

Fact: different users receive different bit rates• t ransmission heterogenei ty

Different users absorb different bit rates• computat ion heterogenei ty

Solution: layered multicast trees• d i fferent layers are t ransmit ted over independent t rees• automat ic subscr ibe/unsubscr ibe• dynamic qual i ty management

S

Q1

Q1

Q2

Q2

Q2 Q2

Q3

Q2

Q3

Q3

D

R

Page 45: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 45

Remote image databases with browsing

Page 46: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 46

Multiresolution graphics

Example: optimize quality (distortion) for a target rate

rate

dist

ortio

n

Page 47: Wavelets, Filter Banks and Multiresolution Signal Processing · Orthonormal bases of wavelets • Haar’s construction of a basis for (1910) • Meyer, Battle-Lemarié, Stromberg

Introduction - 47

Skull page

not reproduced due to copyright restrictions