Wavelets (Chapter 7) CS474/674 – Prof. Bebis. STFT - revisited Time - Frequency localization depends on window size. –Wide window  good frequency localization,

Slides:



Advertisements
Similar presentations
Wavelet Transform A Presentation
Advertisements

University of Ioannina - Department of Computer Science Wavelets and Multiresolution Processing (Background) Christophoros Nikou Digital.
Applications in Signal and Image Processing
Introduction and Overview Dr Mohamed A. El-Gebeily Department of Mathematical Sciences KFUPM
Fourier Transform (Chapter 4)
Wavelets (Chapter 7) CS474/674 – Prof. Bebis.
Lecture05 Transform Coding.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Multiresolution Analysis (Section 7.1) CS474/674 – Prof. Bebis.
Wavelet Transform 國立交通大學電子工程學系 陳奕安 Outline Comparison of Transformations Multiresolution Analysis Discrete Wavelet Transform Fast Wavelet Transform.
Short Time Fourier Transform (STFT)
Wavelet Transform A very brief look.
Wavelet Transform. What Are Wavelets? In general, a family of representations using: hierarchical (nested) basis functions finite (“compact”) support.
Basic Concepts and Definitions Vector and Function Space. A finite or an infinite dimensional linear vector/function space described with set of non-unique.
Wavelet Transform. Wavelet Transform Coding: Multiresolution approach Wavelet transform Quantizer Symbol encoder Input image (NxN) Compressed image Inverse.
Multi-Resolution Analysis (MRA)
Introduction to Wavelets
1 Computer Science 631 Lecture 4: Wavelets Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 project
Fundamentals of Multimedia Chapter 8 Lossy Compression Algorithms (Wavelet) Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
J OURNAL C LUB : Yang and Ni, Xidian University, China “Multimodality medical image fusion based on multiscale geometric analysis of contourlet transform.”
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Introduction to Wavelets -part 2
ECE 501 Introduction to BME ECE 501 Dr. Hang. Part V Biomedical Signal Processing Introduction to Wavelet Transform ECE 501 Dr. Hang.
Fast multiresolution image querying CS474/674 – Prof. Bebis.
Fourier Transforms Revisited
ENG4BF3 Medical Image Processing
CS448f: Image Processing For Photography and Vision Wavelets Continued.
Image Representation Gaussian pyramids Laplacian Pyramids
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
WAVELET TUTORIALS.
CSE &CSE Multimedia Processing Lecture 8. Wavelet Transform Spring 2009.
Lecture 13 Wavelet transformation II. Fourier Transform (FT) Forward FT: Inverse FT: Examples: Slide from Alexander Kolesnikov ’s lecture notes.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 final project
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
ECE472/572 - Lecture 13 Wavelets and Multiresolution Processing 11/15/11 Reference: Wavelet Tutorial
DCT.
1 Using Wavelets for Recognition of Cognitive Pattern Primitives Dasu Aravind Feature Group PRISM/ASU 3DK – 3DK – September 21, 2000.
Wavelets and Multiresolution Processing (Wavelet Transforms)
Time frequency localization M-bank filters are used to partition a signal into different frequency channels, with which energy compact regions in the frequency.
The Wavelet Tutorial: Part2 Dr. Charturong Tantibundhit.
Wavelet Transform Yuan F. Zheng Dept. of Electrical Engineering The Ohio State University DAGSI Lecture Note.
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
Fourier Transform.
By Dr. Rajeev Srivastava CSE, IIT(BHU)
Wavelets (Chapter 7).
In The Name of God The Compassionate The Merciful.
Wavelets Introduction.
Presenter : r 余芝融 1 EE lab.530. Overview  Introduction to image compression  Wavelet transform concepts  Subband Coding  Haar Wavelet  Embedded.
Wavelets Chapter 7 Serkan ERGUN. 1.Introduction Wavelets are mathematical tools for hierarchically decomposing functions. Regardless of whether the function.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Short Time Fourier Transform (STFT) CS474/674 – Prof. Bebis.
Multiresolution Analysis (Section 7.1) CS474/674 – Prof. Bebis.
Wavelet Transform Advanced Digital Signal Processing Lecture 12
Wavelets Transform & Multiresolution Analysis
- photometric aspects of image formation gray level images
Multiresolution Analysis (Chapter 7)
Multi-resolution image processing & Wavelet
Wavelets : Introduction and Examples
The Story of Wavelets Theory and Engineering Applications
CS Digital Image Processing Lecture 9. Wavelet Transform
Multi-resolution analysis
Researchlab 4 Presentation
Introduction To Wavelets
The Story of Wavelets Theory and Engineering Applications
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
Wavelet Transform Fourier Transform Wavelet Transform
Chapter 15: Wavelets (i) Fourier spectrum provides all the frequencies
Wavelet Analysis Objectives: To Review Fourier Transform and Analysis
Presentation transcript:

Wavelets (Chapter 7) CS474/674 – Prof. Bebis

STFT - revisited Time - Frequency localization depends on window size. –Wide window  good frequency localization, poor time localization. –Narrow window  good time localization, poor frequency localization.

Wavelet Transform Uses a variable length window, e.g.: –Narrower windows are more appropriate at high frequencies –Wider windows are more appropriate at low frequencies

What is a wavelet? A function that “waves” above and below the x-axis with the following properties: –Varying frequency –Limited duration –Zero average value This is in contrast to sinusoids, used by FT, which have infinite duration and constant frequency. Sinusoid Wavelet

Types of Wavelets There are many different wavelets, for example: Morlet Haar Daubechies

Basis Functions Using Wavelets Like sin( ) and cos( ) functions in the Fourier Transform, wavelets can define a set of basis functions ψ k (t): Span of ψ k (t): vector space S containing all functions f(t) that can be represented by ψ k (t).

Basis Construction – “Mother” Wavelet The basis can be constructed by applying translations and scalings (stretch/compress) on the “mother” wavelet ψ(t): scale translate Example: ψ(t)

(dyadic/octave grid) Basis Construction - Mother Wavelet j k scale =1/2 j (1/frequency)

Continuous Wavelet Transform (CWT) translation parameter (measure of time) scale parameter (measure of frequency) mother wavelet (i.e., window function) normalization constant Forward CWT: scale =1/2 j (1/frequency)

Illustrating CWT 1.Take a wavelet and compare it to a section at the start of the original signal. 2.Calculate a number, C, that represents how closely correlated the wavelet is with this section of the signal. The higher C is, the more the similarity.

Illustrating CWT (cont’d) 3. Shift the wavelet to the right and repeat step 2 until you've covered the whole signal.

Illustrating CWT (cont’d) 4. Scale the wavelet and go to step Repeat steps 1 through 4 for all scales.

Visualize CTW Transform Wavelet analysis produces a time-scale view of the input signal or image.

Continuous Wavelet Transform (cont’d) Note the double integral! Inverse CWT: Forward CWT:

Fourier Transform vs Wavelet Transform weighted by F(u)

Fourier Transform vs Wavelet Transform weighted by C(τ,s)

Properties of Wavelets Simultaneous localization in time and scale - The location of the wavelet allows to explicitly represent the location of events in time. - The shape of the wavelet allows to represent different detail or resolution.

Properties of Wavelets (cont’d) Sparsity: for functions typically found in practice, many of the coefficients in a wavelet representation are either zero or very small.

Properties of Wavelets (cont’d) Adaptability: Can represent functions with discontinuities or corners more efficiently. Linear-time complexity: many wavelet transformations can be accomplished in O(N) time.

Discrete Wavelet Transform (DWT) (inverse DWT) (forward DWT) where

DFT vs DWT DFT expansion: DWT expansion or one parameter basis two parameter basis

Multiresolution Representation Using Wavelets j fine details coarse details wider, large translations

j fine details coarse details Multiresolution Representation Using Wavelets

j fine details coarse details narrower, small translations Multiresolution Representation Using Wavelets

high resolution (more details) low resolution (less details) … j Multiresolution Representation Using Wavelets

Pyramidal Coding - Revisited Approximation Pyramid (with sub-sampling)

Pyramidal Coding - Revisited Prediction Residual Pyramid (details) reconstruct (with sub-sampling) Approximation Pyramid

Efficient Representation Using “Details” details D 2 L0L0 details D 3 details D 1 (without sub-sampling)

Efficient Representation Using Details (cont’d) representation: L 0 D 1 D 2 D 3 A wavelet representation of a function consists of (1)a coarse overall approximation (2)detail coefficients that influence the function at various scales in general : L 0 D 1 D 2 D 3 …D J

Reconstruction (synthesis) H 3 =H 2 & D 3 details D 2 L0L0 details D 3 H 2 =H 1 & D 2 H 1 =L 0 & D 1 details D 1 (without sub-sampling)

Example - Haar Wavelets Suppose we are given a 1D "image" with a resolution of 4 pixels: [ ] The Haar wavelet transform is the following: L 0 D 1 D 2 D 3 (with sub-sampling)

Example - Haar Wavelets (cont’d) Start by averaging and subsampling the pixels together (pairwise) to get a new lower resolution image: To recover the original four pixels from the two averaged pixels, store some detail coefficients. 1 [ ]

Example - Haar Wavelets (cont’d) Repeating this process on the averages (i.e., low resolution image) gives the full decomposition: 1 Harr decomposition:

Example - Haar Wavelets (cont’d) The original image can be reconstructed by adding or subtracting the detail coefficients from the lower- resolution representations [6] L 0 D 1 D 2 D 3

Example - Haar Wavelets (cont’d) Detail coefficients become smaller and smaller scale decreases. DjDj D j-1 D1D1 L0L0 How should we compute the detail coefficients D j ?

Multiresolution Conditions larger setIf a set of functions V can be represented by a weighted sum of ψ (2 j t - k), then a larger set, including V, can be represented by a weighted sum of ψ (2 j+1 t - k). low resolution high resolution j ψ(2 j t - k) ψ(2 j+1 t - k)

Multiresolution Conditions (cont’d) V j : span of ψ(2 j t - k): V j+1 : span of ψ(2 j+1 t - k):

ψ(t - k) ψ(2t - k) ψ(2 j t - k) … V0V0 V1V1 VjVj if f(t) V j then f(t) V j+1 j=0 j=1 j Nested Spaces Multiresolution Conditions (cont’d)

How to compute D j ? Define a set of basis functions that span the difference between V j+1 and V j IDEA:

Let W j be the orthogonal complement of V j in V j+1 V j+1 = V j + W j How to compute D j ? (cont’d)

If f(t) V j+1, then f(t) can be represented using basis functions φ(t) from V j+1 : V j+1 = V j + W j Alternatively, f(t) can be represented using two sets of basis functions, φ(t) from V j and ψ(t) from W j : V j+1

Think of W j as a means to represent the parts of a function in V j+1 that cannot be represented in V j V j W j How to compute D j ? (cont’d) differences between V j and V j+1 V j+1

How to compute D j ? (cont’d)  using recursion on V j : V 0 W 0, W 1, W 2, … basis functions V j+1 = V j-1 +W j-1 +W j = …= V 0 + W 0 + W 1 + W 2 + … + W j if f(t) V j+1, then: V j+1 = V j + W j

Summary: wavelet expansion (Section 7.2) Wavelet decompositions involve a pair of waveforms: φ(t) ψ(t) encodes low resolution info encodes details or high resolution info scaling function wavelet functionTerminology:

1D Haar Wavelets Haar scaling and wavelet functions: computes average (low pass) computes details (high pass) φ(t) ψ(t)

Let’s consider the spaces corresponding to different resolution 1D images: 1D Haar Wavelets (cont’d) etc.... …. 1-pixel 2-pixel 4-pixel (j=0) (j=1) (j=2) V0V0 V1V1 V2V2

1D Haar Wavelets (cont’d) V 0 represents the space of 1-pixel (2 0 -pixel) images Think of a 1-pixel image as a function that is constant over [0,1) Example: 0 1 width: 1 j=0

1D Haar Wavelets (cont’d) V 1 represents the space of all 2-pixel (2 1 -pixel) images Think of a 2-pixel image as a function having 2 1 equal- sized constant pieces over the interval [0, 1). Example: 0 ½ 1 = + width: 1/2 e.g., j=1 Note that:

1D Haar Wavelets (cont’d) V j represents all the 2 j -pixel images Functions having 2 j equal-sized constant pieces over interval [0,1). V j-1 Example: width: 1/2 j V j Note that: width: 1/2 j-1 width: 1/2 V1V1

1D Haar Wavelets (cont’d) V 0, V 1,..., V j are nested i.e., Vj…V1V0Vj…V1V0 coarse info fine details

Define a basis for V j Scaling function: Let’s define a basis for V j : Note new notation:

Define a basis for V j (cont’d) width: 1/2 0 width: 1/2width: 1/2 2 width: 1/2 3

Define a basis for W j Wavelet function: Let’s define a basis ψ j i for W j : Note new notation:

Define basis for W j (cont’d) Note that the dot product between basis functions in V j and W j is zero!

Basis for V j+1 Basis functions ψ j i of W j Basis functions φ j i of V j form a basis in V j+1

Define a basis for W j (cont’d) V 3 = V 2 + W 2

Define a basis for W j (cont’d) V 2 = V 1 + W 1

Define a basis for W j (cont’d) V 1 = V 0 + W 0

Example - Revisited f(x)= V2V2

φ 2,0 (x) φ 2,1 (x) φ 2,2 (x) φ 2,3 (x) Example (cont’d) V2V2 f(x)=

Example (cont’d) V 1 and W 1 V 2 =V 1 +W 1 φ 1,0 (x) φ 1,1 (x) ψ 1,0 (x) ψ 1,1 (x) (divide by 2 for normalization)

Example (cont’d)

V 2 =V 1 +W 1 =V 0 +W 0 +W 1 V 0,W 0 and W 1 φ 0,0 (x) ψ 0,0 (x) ψ 1,0 (x) ψ 1,1 (x) (divide by 2 for normalization)

Example

Example (cont’d)

Filter banks The lower resolution coefficients can be calculated from the higher resolution coefficients by a tree- structured algorithm (i.e., filter bank). h 0 (-n) is a lowpass filter and h 1 (-n) is a highpass filter Subband encoding (analysis)

Example (revisited) [ ] low-pass, down-sampling high-pass, down-sampling (9+7)/2 (3+5)/2 (9-7)/2 (3-5)/2 LP HP

Filter banks (cont’d) Next level: h 0 (-n) is a lowpass filter and h 1 (-n) is a highpass filter

Example (revisited) [ ] high-pass, down-sampling low-pass, down-sampling (8+4)/2 (8-4)/2 LP HP

Convention for illustrating 1D Haar wavelet decomposition x x x x x x … x x detail (HP) average (LP) … re-arrange: LP HP … … … …

Examples of lowpass/highpass (analysis) filters Daubechies Haar h0h0 h1h1 h0h0 h1h1

Filter banks (cont’d) The higher resolution coefficients can be calculated from the lower resolution coefficients using a similar structure. Subband encoding (synthesis) g 0 (n) is a lowpass filter and g 1 (n) is a highpass filter

Filter banks (cont’d) Next level: g 0 (n) is a lowpass filter and g 1 (n) is a highpass filter

Examples of lowpass/highpass (synthesis) filters Daubechies: Haar (same as for analysis): + g0g0 g1g1 g0g0 g1g1

2D Haar Wavelet Transform The 2D Haar wavelet decomposition can be computed using 1D Haar wavelet decompositions. –i.e., 2D Haar wavelet basis is separable We’ll discuss two different decompositions (i.e., correspond to different basis functions): –Standard decomposition –Non-standard decomposition

Standard Haar wavelet decomposition Steps: (1) Compute 1D Haar wavelet decomposition of each row of the original pixel values. (2) Compute 1D Haar wavelet decomposition of each column of the row-transformed pixels.

Standard Haar wavelet decomposition (cont’d) x x x … x … …. x x x... x (1) row-wise Haar decomposition: … detail average … … …. … … re-arrange terms

Standard Haar wavelet decomposition (cont’d) (1) row-wise Haar decomposition: … detail average … … … …. … row-transformed result … … ….

Standard Haar wavelet decomposition (cont’d) (2) column-wise Haar decomposition: … detail average … … … …. … … … … row-transformed result column-transformed result

Example … … … … …. row-transformed result … … …. re-arrange terms

Example (cont’d) … … … … …. column-transformed result

Standard Haar wavelet decomposition (cont’d)

What is the 2D Haar basis for the standard decomposition? To construct the standard 2D Haar wavelet basis, consider all possible outer products of the1D basis functions. φ 0,0 (x) ψ 0,0 (x) ψ 1,0 (x) ψ 1,1 (x) V 2 =V 0 +W 0 +W 1 Example:

To construct the standard 2D Haar wavelet basis, consider all possible outer products of the1D basis functions. φ 00 (x), φ 00 (x) ψ 00 (x), φ 00 (x) ψ 10 (x), φ 00 (x) What is the 2D Haar basis for the standard decomposition? Notation:

V2V2 What is the 2D Haar basis for the standard decomposition? Notation:

Non-standard Haar wavelet decomposition Alternates between operations on rows and columns. (1) Perform one level decomposition in each row (i.e., one step of horizontal pairwise averaging and differencing). (2) Perform one level decomposition in each column from step 1 (i.e., one step of vertical pairwise averaging and differencing). (3) Rearrange terms and repeat the process on the quadrant containing the averages only.

Non-standard Haar wavelet decomposition (cont’d) x x x … x … …. x x x... x one level, horizontal Haar decomposition: … … … …. … … … one level, vertical Haar decomposition: …

Non-standard Haar wavelet decomposition (cont’d) one level, horizontal Haar decomposition on “green” quadrant one level, vertical Haar decomposition on “green” quadrant … … … …. … … re-arrange terms … … … … …. …

Example … … … …. … … re-arrange terms

Example (cont’d) … … … … ….

Non-standard Haar wavelet decomposition (cont’d)

What is the 2D Haar basis for the non- standard decomposition? Define 2D scaling and wavelet functions: Apply translations and scaling:

V2V2 What is the 2D Haar basis for the non- standard decomposition? Notation:

LL LH: intensity variations along columns (horizontal edges) HL: intensity variations along rows (vertical edges) HH: intensity variations along diagonal LL: average Detail coefficients Three sets of detail coefficients (i.e., subband coding) 2D Subband Coding

LL LH HLHH

Wavelets Applications Noise filtering Image compression –Special case: fingerprint compression Image fusion Recognition G. Bebis, A. Gyaourova, S. Singh, and I. Pavlidis, "Face Recognition by Fusing Thermal Infrared and Visible Imagery", Image and Vision Computing, vol. 24, no. 7, pp , Image matching and retrieval Charles E. Jacobs Adam Finkelstein David H. Salesin, "Fast Multiresolution Image Querying", SIGRAPH, 1995.