1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.

Slides:



Advertisements
Similar presentations
Multimedia Data Compression
Advertisements

Filter implementation of the Haar wavelet Multiresolution approximation in general Filter implementation of DWT Applications - Compression The Story of.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Wavelets (Chapter 7) CS474/674 – Prof. Bebis.
Lecture05 Transform Coding.
CHAPTER 4 Image Enhancement in Frequency Domain
Wavelet Transform. What Are Wavelets? In general, a family of representations using: hierarchical (nested) basis functions finite (“compact”) support.
Wavelet Transform. Wavelet Transform Coding: Multiresolution approach Wavelet transform Quantizer Symbol encoder Input image (NxN) Compressed image Inverse.
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 건국대학교 인터넷미디어공학부 임 창 훈.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
1 Wavelets Examples 王隆仁. 2 Contents o Introduction o Haar Wavelets o General Order B-Spline Wavelets o Linear B-Spline Wavelets o Quadratic B-Spline Wavelets.
© 2010 Cengage Learning Engineering. All Rights Reserved.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
02/12/02 (c) 2002 University of Wisconsin, CS 559 Filters A filter is something that attenuates or enhances particular frequencies Easiest to visualize.
CS448f: Image Processing For Photography and Vision Wavelets Continued.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
A first look Ref: Walker (ch1) Jyun-Ming Chen, Spring 2001
Presentation by: H. Sarper
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Chapter 7: The Fourier Transform 7.1 Introduction
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 final project
JPEG2000 Image Compression Standard Doni Pentcheva Josh Smokovitz.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
DCT.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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)
The Discrete Wavelet Transform
Digital Image Processing Lecture 21: Lossy Compression Prof. Charlene Tsai.
Dr. Scott Umbaugh, SIUE Discrete 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.
Wavelet Transform Yuan F. Zheng Dept. of Electrical Engineering The Ohio State University DAGSI Lecture Note.
Chapter 5: Neighborhood Processing 5.1 Introduction
Introduction to The Lifting Scheme. Two approaches to make a wavelet transform: –Scaling function and wavelets (dilation equation and wavelet equation)
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
By Dr. Rajeev Srivastava CSE, IIT(BHU)
Wavelets (Chapter 7).
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
MRA (from subdivision viewpoint) Jyun-Ming Chen Spring 2001.
N R 1 Image Compression Using the Haar Wavelet Transform Peggy Morton and Arne Petersen Yoon HeeJoo.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Wavelets Chapter 7 Serkan ERGUN. 1.Introduction Wavelets are mathematical tools for hierarchically decomposing functions. Regardless of whether the function.
Wavelets (Chapter 7) CS474/674 – Prof. Bebis. STFT - revisited Time - Frequency localization depends on window size. –Wide window  good frequency localization,
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Wavelet Transform Advanced Digital Signal Processing Lecture 12
Wavelets Transform & Multiresolution Analysis
Solving Systems of Equations Using Matrices
Multi-resolution image processing & Wavelet
Digital Image Processing Lecture 21: Lossy Compression
Wavelets : Introduction and Examples
The Story of Wavelets Theory and Engineering Applications
CSE 589 Applied Algorithms Spring 1999
More Image Manipulation
Introduction To Wavelets
The Story of Wavelets Theory and Engineering Applications
The Story of Wavelets Theory and Engineering Applications
Image Coding and Compression
Wavelet Transform Fourier Transform Wavelet Transform
© 2010 Cengage Learning Engineering. All Rights Reserved.
Chapter 15: Wavelets (i) Fourier spectrum provides all the frequencies
Wavelet Analysis Objectives: To Review Fourier Transform and Analysis
Presentation transcript:

1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng Chapter 15: Wavelets

2 © 2010 Cengage Learning Engineering. All Rights Reserved Waves and Wavelets The idea of wavelets is to keep the wave concept, but drop the periodicity We may consider a wavelet to be a little part of a wave, a wave that is only nonzero in small region Ch15-p.429

3 © 2010 Cengage Learning Engineering. All Rights Reserved Waves and Wavelets Suppose we are given a wavelet Dilate it by applying a scaling factor to x: f (2x) would “squash” the wavelet, and f (x/2) would expand it Translate it by adding or subtracting an appropriate value from x: f (x − 2) would shift the wavelet 2 to the right; f (x + 3) would shift the wavelet 3 to the left Change its height by simply multiplying the function by a constant Ch15-p.429

4 FIGURE 15.2 © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.431

5 FIGURE 15.2 © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.431

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved A simple Wavelet Transform Wavelet transforms work by taking weighted averages of input values and providing any other necessary information to be able to recover the original input Averaging of two values and differencing Ch15-p.432

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. suppose we are given two numbers, 14 and 22. We can easily create their average To recover the original two values from their average, we need a second value, the difference, obtained by subtracting the average from the first value: Ch15-p.432

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. e.g. The concatenation of v 1 and v 2 is the Discrete wavelet transform at 1 scale of the original vector Ch15-p.433

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Discrete wavelet transform at 2 scales Discrete wavelet transform at 3 scales Ch15-p.433

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. To recover the original vector At each stage, the averaging vector produces a lower-resolution version of the original vector Ch15-p.434

Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Wavelet transforms produce a mix of lower resolutions of the input and the extra information required for inversion We notice that the differences may be small if the input values are close together. This concept leads to an idea for compression We apply a threshold by setting to zero all values in the transform that are less than a predetermined value Ch15-p.434

12 Threshold d 3 with 0 Use d’ 3 to recover the original vector 15.1 Waves and Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.434

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. The Haar wavelet is defined by the function Ch15-p.434

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved Applying the Haar Wavelet where the subscripts on φ(x) and ψ(x) represent different dilations and shifts of the basic functions. Then, we can recover f ( x ) with Ch15-p.435

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. The form of the equations above indicates that the discrete wavelet transform can be written as a matrix multiplication, as we saw for the DFT We will show below how this is done. Notice that the Haar wavelet can be written in terms of the simpler pulse function: Mother wavelet father wavelet Ch15-p.435

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. Dilation equation h i are called the filter coefficients (taps) Ch15-p.436

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.437

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.437

19 © 2010 Cengage Learning Engineering. All Rights Reserved. The averaging part of the wavelet corresponds to low-pass filtering, in that we are coarsening or blurring our input Similarly, the differencing part of the transform corresponds to a high-pass filter Thus, a wavelet transform contains within it both high- and low-pass filtering of our input, and we can consider a wavelet transform entirely in terms of filters Ch15-p A simple Wavelet: The Haar Wavelet

20 © 2010 Cengage Learning Engineering. All Rights Reserved Two-Dimensional Wavelets standard decomposition Ch15-p.438

A simple Wavelet: The Haar Wavelet © 2010 Cengage Learning Engineering. All Rights Reserved. nonstandard decomposition Ch15-p.439

Wavelets in M ATLAB © 2010 Cengage Learning Engineering. All Rights Reserved. We will use the UviWave toolbox, developed at the University of Vigo in Spain. Its homepage is ∼ wavelets/uvi_wave.html It can also be found at other places on the Web Assuming that you have downloaded and installed the toolbox Ch15-p.439

Wavelets in M ATLAB © 2010 Cengage Learning Engineering. All Rights Reserved. Here h and g are the low-pass and high-pass filter coefficients for the forward transform rh and rg are the low-pass and high-pass filter coefficients for the inverse transform The daub function produces the filter coefficients for a class of wavelets called Daubechies wavelets, of which the Haar wavelet is the simplest Ch15-p.439

Wavelets in M ATLAB © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.440

Wavelets in M ATLAB © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.440

Wavelets in M ATLAB © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.441

27 FIGURE 15.6 © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.441

28 FIGURE 15.7 © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.442

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.442

30 As for the Haar wavelet, we can apply the Daubechies 4 wavelet by a matrix multiplication; the matrix for a one-scale DWT on a vector of length 8 is 15.4 The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.443

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Notice that the filter coefficients overlap between rows, which is not the case for the Haar matrix This means that the use of the Daubechies 4 wavelet will have smoother results than using the Haar wavelet Ch15-p.443

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Steps for performing a one-scale wavelet transform are given by Umbaugh [37]: 1.Convolve the image rows with the low-pass filter 2.Convolve the columns of the result of Step 1 with the low- pass filter and rescale this to half its size by subsampling 3.Convolve the result of Step 1 with the high-pass filter and again subsample to obtain an image of half the size 4.Convolve the original image rows with the high-pass filter Ch15-p.444

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. 5.Convolve the columns of the result of Step 4 with the low- pass filter and rescale this to half its size by subsampling 6.Convolve the result of Step 4 with the high-pass filter and again subsample to obtain an image of half the size At the end of these steps there are four images, each half the size of the original Ch15-p.444

34 FIGURE 15.8 © 2010 Cengage Learning Engineering. All Rights Reserved. 1.the low-pass/low-pass image (LL), the result of Step 2, 2.the low-pass/high-pass image (LH), the result of Step 3, 3.the high-pass/low-pass image (HL), the result of Step 5, and 4.the high-pass/high-pass image (HH), the result of Step 6 Ch15-p.444

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. The filter coefficients of a wavelet are such that the transform may be inverted precisely to recover the original image Using filters, this is done by taking each subimage, zero interleaving to produce an image of double the size and convolving with the inverse low-pass and high-pass filters Finally, the results of all the filterings are added. For the Daubechies 4 wavelet, the inverse low-pass and high-pass filters are Ch15-p.444

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. A generalization to filtering: lifting Ch15-p.445 (Haar wavelet)

The Daubechies Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. A lifting scheme for the Daubechies 4 wavelet is Ch15-p.445

38 FIGURE 15.9 © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.446

39 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.446

Image Compression Using Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved Thresholding and Quantization Ch15-p.447

41 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.448

42 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.448

Image Compression Using Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.449

44 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.449

45 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.450

46 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.450

Image Compression Using Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved Extraction Ch15-p.451

48 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.452

High-Pass Filtering Using Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.452

50 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.453

Denising Using Wavelets © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.453

52 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.454

53 FIGURE © 2010 Cengage Learning Engineering. All Rights Reserved. Ch15-p.454