Wavelets Shai Avidan Tel Aviv University Slide Credits (partial - - PowerPoint PPT Presentation

wavelets
SMART_READER_LITE
LIVE PREVIEW

Wavelets Shai Avidan Tel Aviv University Slide Credits (partial - - PowerPoint PPT Presentation

Wavelets Shai Avidan Tel Aviv University Slide Credits (partial list) Rick Szeliski Steve Seitz Alyosha Efros Yacov Hel-Or Miki Elad Hagit Hel-Or Marc Levoy Bill Freeman Fredo Durand Sylvain


slide-1
SLIDE 1

Wavelets

Shai Avidan Tel Aviv University

slide-2
SLIDE 2

Slide Credits (partial list)

  • Rick Szeliski
  • Steve Seitz
  • Alyosha Efros
  • Yacov Hel-Or
  • Miki Elad
  • Hagit Hel-Or
  • Marc Levoy
  • Bill Freeman
  • Fredo Durand
  • Sylvain Paris
  • Andrew Adams
slide-3
SLIDE 3

Laplacian Pyramid

  • Make the coarse level by downsampling
  • Make the fine level by upsampling the coarse layer,

and taking the difference with the original

  • Reconstruct by upsampling the coarse layer and

adding the fine layer

slide-4
SLIDE 4

Problem

  • Lapalacian Pyarmid is a redundant
  • representation. Coarse level is blurry

and redundant. What about the fine layer?

slide-5
SLIDE 5

The basic 2x2 transform

Lets start with a simple transform Given signal [a,b] we obtain [c,d] Given [c,d] we can recover [a,b] Observe that c is sum of elements and d is their difference The scaling function: [1 1] The wavelet function: [-1 1]

slide-6
SLIDE 6

Extending to even length vector

Given sequence v[M] Example: v=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] c = 1/sqrt(2) [ (1+2) (3+4)…(15+16)] = 1/sqrt(2) [3 7 11 15 19 23 27 31] d =1/sqrt(2) [(1-2) (3-4)…(15-16)] = 1/sqrt(2) [-1 -1 …

  • 1]
slide-7
SLIDE 7

To reconstruct

Reconstruct: c = 1/sqrt(2)[0 3 0 7 0 11 0 15 0 19 0 23 0 27 0 31] d = 1/sqrt(2)[0 -1 0 -1 … 0 -1] LPF(c) = 1/2[(0+3) (3+0) (0+7) (7+0)…] = 1/2[3 3 7 7 … 31 31] HPF(d) = 1/2[(0+1) (-1-0) …] = 1/2[1 -1 …] LPF(c)-HPF(d) = 1/2([3 3 7 7 … 31 31]-[1 -1 …]) = 1/2([(3-1) (3+1) (7-1) (7+1)…]) = [1 2 3 4 …] Recall: LPF is: 1/sqrt(2)[1 1] HPF is: 1/sqrt(2)[1 -1]

slide-8
SLIDE 8

Block diagrams

slide-9
SLIDE 9

In Matrix form

A matrix representation of the transform on vector v:

slide-10
SLIDE 10

Multi-Resolution

Repeat the process on the coarse level

slide-11
SLIDE 11

And in Matrix form

The right matrix is the one we saw before, the left matrix keeps the last two elements and transforms the first two

slide-12
SLIDE 12

2D Extension

slide-13
SLIDE 13

Wavelets

  • Memory efficient (unlike pyramids)
  • Time efficient (O(n) and not O(nlogn) like Fourier)
  • Simple to compute
  • Orthogonal
  • Not redundant
slide-14
SLIDE 14

Wavelet basis functions

slide-15
SLIDE 15

The Scaling function

slide-16
SLIDE 16

The inner product

slide-17
SLIDE 17

The wavelet function

slide-18
SLIDE 18

The wavelet function

slide-19
SLIDE 19

Example I

I = [9 7 3 5]

slide-20
SLIDE 20

Example II

slide-21
SLIDE 21

Example III

slide-22
SLIDE 22

Wavelet Lifting

Here’s another way to build a wavelet transform: Given vector X of size N=2^n Denote P_G(0) = X P_G(1) = Reduce(P_G(0)) – Select even elements Use P_G(1) to predict P^odd_G(0) Now let: P_w(0) = P^odd_G(0)-P_G(1) And we can repeat this in a multi-scale fashion.

slide-23
SLIDE 23

Version I

slide-24
SLIDE 24

Version I - Example

slide-25
SLIDE 25

Lifting Scheme (Version I)

So far we’ve used simple Reduce. Can we use a more complicated reduce function? The answer is yes and it’s called Lifting Scheme. It was proposed by Sweldens in the mid 90’s. Given X, split to even X_e and odd X_o. Use X_e to predict X_o, so: X^new_o = X_o – Pred(X_e) The advantage is that we can use better prediction schemes with larger support

slide-26
SLIDE 26

Lifting Scheme (ExampleI)

Observe we have many more zeros

slide-27
SLIDE 27

Lifting Scheme

slide-28
SLIDE 28

Lifting Scheme

slide-29
SLIDE 29

Lifting Scheme

slide-30
SLIDE 30

Lifting Scheme

Predict and Update don’t have to be linear…

slide-31
SLIDE 31

Wavelet example

slide-32
SLIDE 32

Wavelet example

slide-33
SLIDE 33

Wavelet Shrinkage Denoising

Noisy image Clean image

slide-34
SLIDE 34

Wavelet Shrinkage Denoising

slide-35
SLIDE 35

Wavelet Shrinkage Denoising

Wavelet coef. value New Wavelet coef. value

slide-36
SLIDE 36

Wavelet Shrinkage Pipeline

slide-37
SLIDE 37

Wavelet Compression (I)

slide-38
SLIDE 38

Wavelet Compression (II)

slide-39
SLIDE 39

Wavelet Compression (III)

slide-40
SLIDE 40

Wavelet Compression (Result)

slide-41
SLIDE 41

JPEG 2000

Wavelet transform used in JPEG 2000

slide-42
SLIDE 42

JPEG 2000

slide-43
SLIDE 43

JPEG 2000