Digital Image Processing

Similar documents
Chapter 7 Wavelets and Multiresolution Processing. Subband coding Quadrature mirror filtering Pyramid image processing

Digital Image Processing

Digital Image Processing

Multiresolution image processing

Wavelets and Multiresolution Processing

Lecture 16: Multiresolution Image Analysis

Introduction to Discrete-Time Wavelet Transform

Chapter 7 Wavelets and Multiresolution Processing

Multiscale Image Transforms

INTRODUCTION TO. Adapted from CS474/674 Prof. George Bebis Department of Computer Science & Engineering University of Nevada (UNR)

Multiresolution schemes

Multiresolution schemes

Module 4 MULTI- RESOLUTION ANALYSIS. Version 2 ECE IIT, Kharagpur

Module 4 MULTI- RESOLUTION ANALYSIS. Version 2 ECE IIT, Kharagpur

ECE472/572 - Lecture 13. Roadmap. Questions. Wavelets and Multiresolution Processing 11/15/11

Introduction to Wavelet. Based on A. Mukherjee s lecture notes

Multiresolution analysis & wavelets (quick tutorial)

Contents. Acknowledgments

Problem with Fourier. Wavelets: a preview. Fourier Gabor Wavelet. Gabor s proposal. in the transform domain. Sinusoid with a small discontinuity

Wavelets: a preview. February 6, 2003 Acknowledgements: Material compiled from the MATLAB Wavelet Toolbox UG.

1 The Continuous Wavelet Transform The continuous wavelet transform (CWT) Discretisation of the CWT... 2

Module 4. Multi-Resolution Analysis. Version 2 ECE IIT, Kharagpur

Wavelets and Multiresolution Processing. Thinh Nguyen

Wavelet Transform. Figure 1: Non stationary signal f(t) = sin(100 t 2 ).

2D Wavelets. Hints on advanced Concepts

Course and Wavelets and Filter Banks

MULTIRATE DIGITAL SIGNAL PROCESSING

Wavelets and multiresolution representations. Time meets frequency

EE67I Multimedia Communication Systems

Wavelets in Pattern Recognition

Sparse linear models

Ch. 15 Wavelet-Based Compression

An Introduction to Wavelets and some Applications

Introduction p. 1 Compression Techniques p. 3 Lossless Compression p. 4 Lossy Compression p. 5 Measures of Performance p. 5 Modeling and Coding p.

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

1 Introduction to Wavelet Analysis

Digital Image Processing Lectures 15 & 16

Defining the Discrete Wavelet Transform (DWT)

Wavelets, Filter Banks and Multiresolution Signal Processing

Two Channel Subband Coding

Elec4621 Advanced Digital Signal Processing Chapter 11: Time-Frequency Analysis

ECE 634: Digital Video Systems Wavelets: 2/21/17

Signal Analysis. Multi resolution Analysis (II)

c 2010 Melody I. Bonham

Filter Banks II. Prof. Dr.-Ing. G. Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany

COMPLEX WAVELET TRANSFORM IN SIGNAL AND IMAGE ANALYSIS

Index. p, lip, 78 8 function, 107 v, 7-8 w, 7-8 i,7-8 sine, 43 Bo,94-96

Subband Coding and Wavelets. National Chiao Tung University Chun-Jen Tsai 12/04/2014

ECG782: Multidimensional Digital Signal Processing

Denoising and Compression Using Wavelets

Satellite image deconvolution using complex wavelet packets

Complex Wavelet Transform: application to denoising

- An Image Coding Algorithm

MGA Tutorial, September 08, 2004 Construction of Wavelets. Jan-Olov Strömberg

Introduction to Wavelets and Wavelet Transforms

Objective: Reduction of data redundancy. Coding redundancy Interpixel redundancy Psychovisual redundancy Fall LIST 2

Lecture Notes 5: Multiresolution Analysis

1. Fourier Transform (Continuous time) A finite energy signal is a signal f(t) for which. f(t) 2 dt < Scalar product: f(t)g(t)dt

A Novel Fast Computing Method for Framelet Coefficients

( nonlinear constraints)

Digital Speech Processing Lecture 10. Short-Time Fourier Analysis Methods - Filter Bank Design

Multiresolution Analysis

Index. l 1 minimization, 172. o(g(x)), 89 F[f](λ), 127, 130 F [g](t), 132 H, 13 H n, 13 S, 40. Pr(x d), 160 sinc x, 79

Analysis of Fractals, Image Compression and Entropy Encoding

A new class of morphological pyramids for multiresolution image analysis

Filter Banks II. Prof. Dr.-Ing Gerald Schuller. Fraunhofer IDMT & Ilmenau Technical University Ilmenau, Germany

Advanced Digital Signal Processing -Introduction

A Friendly Guide to the Frame Theory. and Its Application to Signal Processing

Multirate signal processing

Basic Multi-rate Operations: Decimation and Interpolation

Harmonic Analysis: from Fourier to Haar. María Cristina Pereyra Lesley A. Ward

Boundary functions for wavelets and their properties

From Fourier to Wavelets in 60 Slides

Lecture 7 Multiresolution Analysis

Lecture 15: Time and Frequency Joint Perspective

Module 5 EMBEDDED WAVELET CODING. Version 2 ECE IIT, Kharagpur

2D Wavelets for Different Sampling Grids and the Lifting Scheme

Wavelet Analysis for Nanoscopic TEM Biomedical Images with Effective Weiner Filter

CONSTRUCTION OF AN ORTHONORMAL COMPLEX MULTIRESOLUTION ANALYSIS. Liying Wei and Thierry Blu

Space-Frequency Atoms

MLISP: Machine Learning in Signal Processing Spring Lecture 8-9 May 4-7

Wavelet transforms and compression of seismic data

SIGNAL COMPRESSION. 8. Lossy image compression: Principle of embedding

Wavelets and Filter Banks

A NEW BASIS SELECTION PARADIGM FOR WAVELET PACKET IMAGE CODING

Space-Frequency Atoms

Optimization of biorthogonal wavelet filters for signal and image compression. Jabran Akhtar

Wavelets. Introduction and Applications for Economic Time Series. Dag Björnberg. U.U.D.M. Project Report 2017:20

An Introduction to Filterbank Frames

ECG782: Multidimensional Digital Signal Processing

An Investigation of 3D Dual-Tree Wavelet Transform for Video Coding

Scientific Computing: An Introductory Survey

Machine Learning: Basis and Wavelet 김화평 (CSE ) Medical Image computing lab 서진근교수연구실 Haar DWT in 2 levels

Medical Image Processing Using Transforms

Introduction to Computer Vision. 2D Linear Systems

Multiresolution analysis

Fourier Kingdom 2 Time-Frequency Wedding 2 Windowed Fourier Transform 3 Wavelet Transform 4 Bases of Time-Frequency Atoms 6 Wavelet Bases and Filter

Invariant Scattering Convolution Networks

Quadrature-Mirror Filter Bank

A Higher-Density Discrete Wavelet Transform

Transcription:

Digital Image Processing, 2nd ed. Digital Image Processing Chapter 7 Wavelets and Multiresolution Processing Dr. Kai Shuang Department of Electronic Engineering China University of Petroleum shuangkai@cup.edu.cn 2002 R. C. Gonzalez & R. E. Woods Some slides and illustrations from Dr. Jimin Liang and Dr. Nawapak Eua-Anant

Preview Good old Fourier transform A transform where the basis functions are sinusoids, hence localized in frequency but not localized in time; in transform domain the temporal information is lost Short-time Fourier transform Wavelets Varying frequency and limited duration; an attempt to reveal both the frequency and temporal information in the transform domain Multiresolution analysis Signal (image) representation at multiple resolutions

Background Images Connected regions of similar texture combined to form different objects Small sized or low in contrast objects: examined at high resolution Large sized or high in contrast: examined at a coarse view Several resolutions needed to distinguished between different objects Mathematically images are 2-D arrays of intensity values of locally varying statistics (resulting from edges, homogenous regions, etc. see Fig. 7.1)

Histograms computed in local regions Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Basic ideas of linear transformation To change the coordinate system in which a signal (image/video) is represented in order to make it much better suited for processing (e.g. compression). To represent all the useful signal features and important phenomena in as compact manner as possible. Important to compact the bulk of the signal energy into the fewest number of transform coefficients.

Four properties of a Good Transform: Decorrelate the image pixels Desirable to be orthogonal Provide good energy compaction Efficient computational algorithm should exist There is no universal good transform. Among block transforms KLT is statistically optimal (first 3 properties fulfilled, but 4th no). Instead, in image processing, fixed suboptimal transforms are used, such as DFT, DCT, lapped transforms, wavelets, etc.

Fourier, Short-time Fourier transforms and modulated filter banks Classical Fourier transform: uncertainty principle u[k] has a narrow support (localized), then U(.) has a wide support (non-localized), and vice versa Notion of frequency that varies with time not accommodated

Fourier transform (Fourier spectrum) Fourier transform acts as an optical prism

Short-time Fourier (STFT) transform w[k] is a window function (Gabor transform w[k] is Gaussian)

Short-time Fourier (STFT) transform STFT can be re-written as This is a convolution with a filter Computing it for discrete frequencies make a set of filters This leads to a DFT-modulated filter bank with a prototype filter window function

Image Pyramids Creation by iterated approximations and interpolations (predictions) The approximation output is taken as the input for the next resolution level For a number of levels P, two pyramids: approximation (Gaussian) and prediction residual (Laplacian), are created approximation filters could be: averaging low-pass (Gaussian) Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Gaussian and Laplacian Pyramids Starting image is 512 512; convolution kernel (approximation kernel) is 5 5 Gaussian Different resolutions are appropriate for different image objects (window, vase, flower, etc.) Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Subband Coding The image is decomposed into a set of band-limited components (subbands). Two-channel, perfect reconstruction system; two sets of half-band filters Analysis: h 0 low-pass and h 1 high-pass and Synthesis: g 0 low-pass and g 1 high-pass Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Brief reminder of Z-transform properties

Subband Coding

Perfect Reconstruction Filter Bank

Analysis Modulation Matrix

Perfect Reconstruction Filter Families QMF quadrature-mirror filters CQF conjugate-quadrature filters

2-channel filter bank: Analysis bank H is the lowpass filter and G is the highpass filter. 2 is the downsampling operator: (1 3 4 6 5) (1 4 5). lowpass channel x H 2 G 2 highpass channel s d

2-channel filter bank: Synthesis bank H is the lowpass filter and G is the highpass filter. 2 is the upsampling operator: (1 4 5) (1 0 4 0 5). lowpass channel s d 2 2 H G y highpass channel

A biorthogonal filter bank x H 2 G 2 s d s 2 H d 2 G y Biorthogonal (or perfect) filter bank: if y=x for all inputs x.

An orthogonal filter bank x H 2 G 2 s d s d 2 2 H = Orthogonal filter bank: if it is biorthogonal, and both analysis filters H and G are the time reversals of the synthesis filters H & G: H=(1, 2, 3) H =(3, 2, 1). H G y

Separable filtering in 2-D (images) Vertical followed by horizontal filtering Four output subbands: approximation, and vertical, horizontal, and diagonal detail subbands (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Example: four band subband filtering of an image (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. Aliasing is presented in the vertical and horizontal detail subbands. It is due to the downsampling and will be canceled during the reconstruction stage.

Example: 8-tap orthonormal filter designed by Daubechies (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Continuous Wavelet transform Wavelet transform decomposes a signal into a set of basis functions. These basis functions are called wavelets Transform a continuous function into a highly redundant function of two variables translation (t) and scale (s).

Comparison between Fourier Transform and Continuous WT (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet transforms vs. Fourier transform The standard Fourier Transform (FT) decomposes the signal into individual frequency components. The Fourier basis functions are infinite in extent. FT can never tell when or where a frequency occurs. Any abrupt changes in time in the input signal f(t) are spread out over the whole frequency axis in the transform output F(ω) and vice versa. WT uses short window at high frequencies and long window at low frequencies (recall a and b in previous formula). It can localize abrupt changes in both time and frequency domains.

Discrete Wavelet Transform (DWT) Transform pair (forward and inverse transform) applicable for discrete signals (or sampled signals) Here x is a discrete variable: x=0,1,2, M-1 Normally, M=2 J ;j 0 =0;j=0,1,2, J-1 and k=0,1,2, 2 j -1 W ϕ and are referred as approximation and detail coefficients respectively. W ψ

Haar Transform (oldest and simplest wavelets) The Haar aperture function is 1 ψ harr ( x) = 10 x < 1/ 2( x) 11/ 2 x< 1 ( x). 1/2 1-1 Haar s theorem (1905): haar All Haar wavelets ψ, together with the constant j, k function 1, consist into an orthonormal basis for the Hilbert space of all square integrable functions on [0, 1].

Haar Transform (cont d)

Example:2X2 and 4X4 Transform Matrix

Haar Functions in a Discrete Wavelet Transform (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet transform of images Wavelets work for decomposing signals (such as images) into hierarchy of Increasing resolutions: as we consider more layers, we get more and more detailed look at the image.

Another Example: The Shannon wavelets The Shannon s aperture function is: ψ Shannon ( x) = 2 sinc (2x) sinc ( x). Theorem: { ψ Shannon j,k ( x) : j, k Z} is an orthonormal basis of L 2 (R).

Shannon wavelets (cont d) How to visualize the orthonormal basis? Answer: go to the Fourier domain! ψ shannon ( x) = 2 sinc (2x) sinc ( x). Fourier of 2sinc(2x) Fourier of sinc(x) According to Shannon: -2pi All signals bandlimited to ( π, π) can be represented by sinc(x-n) those bandlimited to ( 2π, π ) U (π, 2π), by ψ ( x n). those bandlimited to ( 4π, 2π ) U (2π, 4π), byψ = 2ψ (2 -pi pi 2pi 1, n x n).

Shannon wavelets (cont d) According to Shannon: All signals bandlimited to (-π, π) can be represented by sinc(x-n) those bandlimited to (-2 π, - π) U (π, 2 π), by ψ ( x n). those bandlimited to (-4π,-2π)U(2π, 4π), by ψ = 2ψ (2x ). represented by ψ 1, n n = 2ψ (2x...... 1,n represented by ψ ( x represented by ψ -1,n n) ' s. = 1 / 2ψ ( x n) ' s. / 2 n) ' s. π 2 π 2π 4π

Partition of the time-frequency plane Heisenberg s uncertainty principle requires that each TF atom must have: Δt Δx 2π. Thus, for an optimal localization, the life time of an atom must influence its scale or frequency content. sinc(4x-k) frequency sinc(2x-m) sinc(x-n) time

Multiresolution Analysis (MRA) In Multiresolution Analysis (MRA) a scaling function is used to create a series of approximations of a function (image), each differing by a factor of two. Additional functions, wavelets, are used to encode the difference between adjacent approximations.

Series Expansions

Series Expansions

Series Expansions

Orthonormal Basis

Orthonormal Basis

The Expansion Set is Not a Basis for V If the expansion set is not a basis for V, but supports the expansion f ( x ) = α ( ) kϕ k x there is more than one set of α for any f (x) V k The expansion functions and their duals are said to be overcomplete or redundant; they form a frame in which A f 2 ( x) ϕ ( x), f ( x) B f ( x) k for some A>0 and B< and all f (x) V k 2 2

Scaling Function

Scaling Function 2 j / 2 ( x) = x k ϕ, ϕ 2 j k j f V ( x) V j 0 if then f ( x) = α ϕ ( x) j k k k 0,

The Haar Scaling Function (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Basis for Vector space V j Basis functions for V j are called scaling functions and are denoted by φ. A simple basis for V j is given by the set of scaled and translated box functions:

MRA Requirements V (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. V

MRA Wavelets and Multiresolution Processing Under the previous conditions, the expansion functions of subspace V j can be expressed as a weighted sum of the expansion functions of subspace V j+1 :

Refinement (or MRA or Dilation) Equation

Example: Haar Scaling Function Coefficients

Wavelet Functions Given a scaling function which satisfies the four MRA requirements, one can define a wavelet function ψ (x) which, together with its integer translates and binary scalings, spans the difference between any two adjacent scaling subspaces V j and V j+1 V j+1 = V j W j (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. V j is the orthogonal complement of V j in V j+1

Wavelet Functions

Orthogonality Wavelets and Multiresolution Processing

Wavelet Functions

Example:Haar Wavelet Function Coefficients

Example: Haar Wavelet Functions in W 0 and W 1 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Series Expansions

Wavelets and Multiresolution Processing Example: The Haar Wavelet Series Expansion of y=x 2

Example: The Haar Wavelet Series Expansion of y=x 2 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Discrete Wavelet Transform(DWT)

Example: computing the DWT

Example: computing the DWT

Example: computing the DWT

Wavelets and Multiresolution Processing Fast Wavelet Transform (FWT) or Mallat s Herringbone Algorithm

Deriving the FWT

Deriving the FWT

FWT Analysis Filter Bank (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Two-Stage(or Two-Scale) FWT Analysis Bank (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Example: Computing a 1-D FWT Consider the function f(n)={1,4,-3,0} (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

FWT -1 Synthesis Filter Bank (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Two-Stage (or Two-Scale) FWT -1 Synthesis Bank (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Example: Computing a 1-D FWT -1 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

FWT vs. FFT Wavelets and Multiresolution Processing (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

2-D DWT: Definition

2-D DWT: Analysis and Synthesis Filter Banks Analysis Filter Banks Resulting Decomposion Synthesis Filter Banks (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Example: A Three - Scale FWT (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Analysis and Synthesis Filters Analysis filters Synthesis filters Wavelet function Scaling function (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. Wavelets and Multiresolution Processing

Example: Wavelet-Based Edge Detection (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Example: Modifying a DWT for Noise Removal (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Haar Wavelet Function Coefficients (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Series Expansions Consider the orthogonal case c(k) are referred as approximation coefficients and d(k) are referred as detail coefficients. Example: (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Packets The Wavelet Transform decomposes a function into a series of logarithmically related frequency bands. Low frequencies are grouped into narrow bands, while the high frequencies are grouped into wider bands. Wavelet Packets are generalization that allows greater control over the time-frequency plane partitioning. Consider the two-scale filter bank as a binary tree. The Wavelet coefficients are at the nodes of the tree. The root node contains the highestscale approximation coefficients (i.e. the sampled signal itself). Each node contains coefficients representing different subspaces subspace analysis tree. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

WT: Filter Bank, Analysis Tree, and Spectrum Splitting (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet packets Wavelet packets are conventional wavelet transforms in which the details are also iteratively filtered. Subscripts in the figure show the scale and a string of A s and D s encoding the path from the parent to the node. The packet tree almost triples the number of decompositions. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Packets: Filter Structure and Spectrum Splitting (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Packets (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

2-D Wavelet Packets In 2-D, separable implementation of wavelet packets leads to a quad-tree structure. The frequency spectrum is divided into four areas. The lowfrequency area is in the centre. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Portion of 2-D Wavelet Packet Tree (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Wavelet Packet Decomposition (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Optimal Wavelet Packet Basis Search Entropy-based criteria for searching the optimal (the best) wavelet packet decomposition An additive cost function for comparing different decompositions (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Optimal Wavelet Packet Basis (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.