The New Graphic Description of the Haar Wavelet Transform

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

Wavelets and Image Compression. Bradley J. Lucier

A First Course in Wavelets with Fourier Analysis

Multiresolution analysis & wavelets (quick tutorial)

Wavelets and Multiresolution Processing

Lecture 2: Haar Multiresolution analysis

Image Coding Algorithm Based on All Phase Walsh Biorthogonal Transform

Wavelets and Multiresolution Processing. Thinh Nguyen

Analysis of Fractals, Image Compression and Entropy Encoding

Digital Image Processing

Elementary maths for GMT

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Lecture Notes 5: Multiresolution Analysis

Laboratory 1 Discrete Cosine Transform and Karhunen-Loeve Transform

Invariant Scattering Convolution Networks

Wavelets For Computer Graphics

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

Evolutionary Power Spectrum Estimation Using Harmonic Wavelets

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

We use the overhead arrow to denote a column vector, i.e., a number with a direction. For example, in three-space, we write

FILTERING IN THE FREQUENCY DOMAIN

On Walsh transform and matrix factorization 1

Digital Image Processing

Digital Image Processing

An Introduction to Wavelets and some Applications

Multiresolution image processing

Construction of Wavelets and Applications

Construction of Multivariate Compactly Supported Orthonormal Wavelets

Multiresolution Analysis

Study of Wavelet Functions of Discrete Wavelet Transformation in Image Watermarking

ECG782: Multidimensional Digital Signal Processing

Introduction to Wavelets and Wavelet Transforms

Sparse linear models

Lectures notes. Rheology and Fluid Dynamics

Elliptic Fourier Transform

Design and Implementation of Multistage Vector Quantization Algorithm of Image compression assistant by Multiwavelet Transform

Lecture 16: Multiresolution Image Analysis

Scientific Computing: An Introductory Survey

MULTI-RESOLUTION SIGNAL DECOMPOSITION WITH TIME-DOMAIN SPECTROGRAM FACTORIZATION. Hirokazu Kameoka

( nonlinear constraints)

Introduction to Discrete-Time Wavelet Transform

Nontechnical introduction to wavelets Continuous wavelet transforms Fourier versus wavelets - examples

Time series denoising with wavelet transform

The Karhunen-Loeve, Discrete Cosine, and Related Transforms Obtained via the Hadamard Transform

1 Introduction to Wavelet Analysis

UMCS. Annales UMCS Informatica AI 6 (2007) Wavelet analysis of speech signal

Multiscale Image Transforms

4.1 Haar Wavelets. Haar Wavelet. The Haar Scaling Function

arxiv:gr-qc/ v1 24 Dec 2004

1 Introduction In [2] a method for computing the Walsh spectrum in R-encoding of a completely specified binary-valued function was presented based on

The Application of Legendre Multiwavelet Functions in Image Compression

Revolutionary Image Compression and Reconstruction via Evolutionary Computation, Part 2: Multiresolution Analysis Transforms

Module 7:Data Representation Lecture 35: Wavelets. The Lecture Contains: Wavelets. Discrete Wavelet Transform (DWT) Haar wavelets: Example

TCNJ JOURNAL OF STUDENT SCHOLARSHIP VOLUME XI APRIL, 2009 HIGHER ORDER TENSOR OPERATIONS AND THEIR APPLICATIONS

Digital Image Processing

Wavelets: Theory and Applications. Somdatt Sharma

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

Introduction to Signal Processing

Half-Pel Accurate Motion-Compensated Orthogonal Video Transforms

State Analysis and Optimal Control of Linear. Time-Invariant Scaled Systems Using. the Chebyshev Wavelets

Development and Applications of Wavelets in Signal Processing

6-3 Solving Systems by Elimination

Contents. Acknowledgments

An Introduction to Wavelets

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

Let p 2 ( t), (2 t k), we have the scaling relation,

arxiv: v2 [math.fa] 27 Sep 2016

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

Image Compression. 1. Introduction. Greg Ames Dec 07, 2002

Kernel Machine Based Fourier Series

Haar Spectrum of Bent Boolean Functions

Proyecto final de carrera

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

Wavelet Analysis of Print Defects

Simon Fraser University School of Engineering Science ENSC Linear Systems Spring Instructor Jim Cavers ASB

Reduction in number of dofs

October 7, :8 WSPC/WS-IJWMIP paper. Polynomial functions are renable

HOSVD Based Image Processing Techniques

Discrete Wavelet Transform: A Technique for Image Compression & Decompression

Multiresolution schemes

Identification and Classification of High Impedance Faults using Wavelet Multiresolution Analysis

Linear Algebra. Min Yan

Multiresolution schemes

SPEECH ANALYSIS AND SYNTHESIS

A new class of morphological pyramids for multiresolution image analysis

Introduction to Biomedical Engineering

Wavelets, Filter Banks and Multiresolution Signal Processing

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

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

An Introduction to Filterbank Frames

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

Wavelet Transform And Principal Component Analysis Based Feature Extraction

A Tutorial on Wavelets and their Applications. Martin J. Mohlenkamp

Multi-Resolution Analysis for the Haar Wavelet: A Minimalist Approach

DISCRETE CDF 9/7 WAVELET TRANSFORM FOR FINITE-LENGTH SIGNALS

Latent Semantic Models. Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H. Schutze

UNIVERSITY OF WISCONSIN-MADISON CENTER FOR THE MATHEMATICAL SCIENCES. Tight compactly supported wavelet frames of arbitrarily high smoothness

encoding without prediction) (Server) Quantization: Initial Data 0, 1, 2, Quantized Data 0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256

Transform coding - topics. Principle of block-wise transform coding

Wavelet Bases of the Interval: A New Approach

Transcription:

he New Graphic Description of the Haar Wavelet ransform Piotr Porwik and Agnieszka Lisowska Institute of Informatics, Silesian University, ul.b dzi ska 39, 4-00 Sosnowiec, Poland porwik@us.edu.pl Institute of Mathematics, Silesian University, ul.bankowa 4, 40-007 Katowice, Poland alisow@ux.math.us.edu.pl Abstract. he image processing and analysis based on the continuous or discrete image transforms are the classic processing technique. he image transforms are widely used in image filtering, data description, etc. he image transform theory is a well known area, but in many cases some transforms have particular properties which are not still investigated. his paper for the first time presents graphic dependences between parts of Haar and wavelets images. he extraction of image features immediately from spectral coefficients distribution has been shown. In this paper it has been presented that two-dimensional both, the Haar and wavelets functions products, can be treated as extractors of particular image features. Introduction he computer and video-media applications have developed rapidly the field of multimedia, which requires the high performance, speedy digital video and audio capabilities. he digital signal processing is widely used in many areas of electronics, communication and information techniques [,,3,6,]. In the signals compression, filtration, systems identification, the commonly used transforms are based on sinusoidal basic functions such as: Discrete Fourier, Sine or Cosine ransform or rectangular basic functions: Discrete Walsh and Wavelet ransform, (Haar, Daubechies, etc.) [,3,7]. All these functions are orthogonal, and their transforms require only additions and subtractions. It makes that it is easy to implement them on the computer. It not only simplifies computations but also permits to use different (linear and nonlinear) filters [3,4,9] to get the spectrum. One should remember that researches in this topic are still in progress and new improvements have been found [5,8,9]. Fourier methods are not always good tools to recapture the non-smooth signal []; too much information is needed to reconstruct the signal locally. In these cases the wavelet analysis is often very effective because it provides a simple approach for dealing with the local aspects of signal, therefore particular properties of the Haar or wavelet transforms allow analyzing original image on spectral domain effectively. M. Bubak et al. (Eds.): ICCS 004, LNCS 3039, pp. 8, 004. Springer-Verlag Berlin Heidelberg 004

P. Porwik and A. Lisowska he Discrete Haar and Wavelet ransforms Alfred Haar in [7] has defined a complete orthogonal system of functions in p L ([0,]), p [, ]. Nowadays, in the literature there are some other definitions of the Haar functions [3,]. Discrete Haar functions can be defined as functions determined by sampling the Haar functions at n points. hese functions can be conveniently represented by means of matrix form. Each row of the matrix H ( n) includes the discrete Haar sequence haar( w, t ) (or otherwise the discrete Haar function). In this notation, index w identifies the number of the Haar function and index t discrete point of the function determination interval. In this case, the Haar matrix of any dimension can be obtained by the following recurrence relation: H( n ) [ ] H( n) = ( n )/ I( n ) [ ], H (0) = () and: H( n) H ( n) n for n > and [ H( n)] = H ( n), where: H( n) matrix of the discrete Haar functions of degree n, I( n) identity matrix of degree n, the Kronecker (tensor) product. Definition. wo-dimensional N N = forward and inverse Discrete Haar ransform can be defined in matrix notation as: n n S = a H( n) F a H ( n), F = b H( n) S b H ( n), () where: F the image in matrix form. he matrix has dimension N N pixels. S the spectrum matrix, and a b= / N. Hence a or b parameters can be defined as values: /N, / N or, n = log N. Fig. presents some known transforms of a test image. he test image contains a simple test impulse represented as 8 8 matrix, which has 0 values everywhere, except the upper left element, which has the value of 8. From Fig. we can observe that all N elements of these transforms are nonzero except the Haar transform, which has only N nonzero entries. hese features are very important in image processing and convenient from image compression point of view. he energy distribution informs us where there are situated the important features of image [,0,]. It is easy to observe from Fig. that the Walsh transform gives the worst results here: distribution of spectral energy is uniformable. In c) and d) cases distribution of spectral energy has sharply outlined maximum, outside of which, one can observe the decrease of energy. he distribution of the Haar spectrum is not proper too, but we can treat this transform differently. Presented discrete transforms, enable us to observe where energy concentrations occur but from this representation, it is not possible to find more precisely information about real image. For example, it is difficult to point places, which describe horizontal, vertical, etc. details of real image. hese troubles can be overcome by well known multiresolution analysis [3,5].

he New Graphic Description of the Haar Wavelet ransform 3 a) b) Note: a = / N c) d) Fig.. he S transform of image containing the test impulse: a) Walsh-Hadamard; b) Haar; c) DS (Discrete Sine ransform); d) DC (Discrete Cosine ransform) he motivation for usage of the wavelet transform is to obtain information that is more discriminating by providing a different resolution at different parts of the timefrequency plane. he wavelet transforms allow partitioning of the time-frequency domain into non-uniform tiles in connection with the time-spectral contents of the signal. he wavelet methods are connected with classical basis of the Haar functions scaling and dilation of a basic wavelet can generate the basis Haar functions. Any Haar function basis () can be generated as: ψ i ( t) = ψ ( t i), i = 0,,...,, = 0,,...,log N, or generally ψ i ( t) = haar( + i, t). From this example follows that functions ψ i ( t) are orthogonal to one another. Hence, we obtain linear span of vector space W = spnψ { i }. A collection of linearly i = 0,..., independ- ent functions ψ i t i = 0,..., { ( )} spanning W we called wavelets. he Haar scaling function is defined by the formula: φ i ( t) = φ( t i), i = 0,,...,, = 0,,...,log N. he index refers to dilation and index i refers to translation [3,]. Hence, we obtain linear span of vector space V = spn{ φ i }. he basic i= 0,..., functions from the space V are called scaling functions. In multiresolution analysis the Haar basis has important property of orthogonality: V = V W. he space W can be treated as the orthogonal complement of V in V +. So, the basis functions of W together with the basis functions of V form a basis for V +. 3 he Haar and Wavelet Basic Images Due to its low computing requirements, the Haar transform has been mainly used for image processing and pattern recognition. From this reason two dimensional signal processing is an area of efficient applications of Haar transforms due to their waveletlike structure. Because H( n) and H( n) are the square matrices, their product is commutative, therefore equations () can be rewritten and expressed as:

4 P. Porwik and A. Lisowska N N s( k, m) = f ( x, y) haar( k, x) haar( m, y) (3) x= 0 y= 0 where: S = [ s km ], F = [ f xy ], xykm,,, {0,,..., N }. Basing on equation of analysis () we can conclude that in D spectral domain the values of coefficients s i depend on appropriate product of the two Haar functions. Fig. presents an example of product of the arbitrary selected Haar functions. Fig.. he example of product of two discrete Haar functions Because this product is multiplied by image matrix, the result of such multiplication can be treated as a particular extractor it can be used to locate the specific edges hidden in image. By looking for all coefficients in the spectral space, one can find all important edge directions in the image. In this case, we must find decomposition matrices of matrix H ( n). For last decomposition level, it can be noticed that Mn = H ( n). If each orthogonal matrix M i, i =,,3 one multiplies by / factor, then procedure of calculations will be according to the classical Mallat algorithm []. he product of the decomposition levels for all D Haar functions (for case N = 8 ) is shown in Fig. 3 the pictures have been composed on the basis of M i matrices and the method shown in Fig.. From Fig. 3 we can conclude that the classical Haar transform gives different spectral coefficients on different decomposition levels. he construction of decomposition matrices can be as follows: n n n Step. According to the formula V = V W, the matrix M has a form n n n n M = [ φ V, ψ W ]. n n = 0,..., = 0,..., n n n n Step. Because V = V W W, the matrix M can be constructed n n n n n n as follows M = [ φ V, ψ W, ψ W ]. n n n = 0,..., = 0,..., = 0..., Step n. Finally, after n steps of calculations, we can construct the formula 0 0 n V = V W W W... W, hence the matrix M n has a structure M 0 0 0 0 n n n = [ φ0 V, ψ0 W, ψ = 0, W, ψ = 0,...,3 W,..., ψ n W ] = 0,...,.

he New Graphic Description of the Haar Wavelet ransform 5 Example. Let n = 3 then: 3 = = 0 3 0 3 V V W, M [ φ, φ, φ, φ, ψ, ψ, ψ, ψ ], V = V W W = φ0 φ ψ0 ψ ψ = 0...,3 W, M [,,,, ], 0 0 0 0 V = V W W W 3 = φ0 ψ0 ψ = 0, W ψ = 0,...3 W, M [,,, ], 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 M 0 0 0 0 =, M 0 0 0 0 0 0 =, 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 M 0 0 0 0 3 =. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a) b) c) Fig. 3. he D Haar functions product treated as extractors. Decomposition levels: a) first, b) second, c) third One advantage of the method presented above is that often a large number of the detail coefficients turn out to be very small in magnitude, as in the example of Fig.. runcating, or removing, these small coefficients introduce only small errors in the reconstructed image. Additionally, we can control which coefficients will be removed, because its distribution is known (Fig. 3). Basing on the facts that W = spn{ ϕ }, i i = 0,..., V = spn{ φ } i we can express functions φ and ψ as a linear combination of the basis functions from V and i = 0,..., W spaces. Let us denote F as an image in matrix form and define the operators: A ( i) = / [F( i) + F(i+ )], D ( i) = / [F( i) F (i+ )], (4) where: F ( i) vector of size N, containing row or column of matrix F, i {0,,..., N / }, A ( i) vector of size N/, containing approximation coefficients, D ( i) vector of size N/, containing detail coefficients.

6 P. Porwik and A. Lisowska o get wavelet decomposition on the first level of an image F (the spectrum matrix called S ) we first apply the operators (4) to all columns of the matrix and then to all rows [3,8,]. o get the second level of wavelet decomposition (matrix S ) one can N N apply similar analysis to upper left sub-matrix of size of matrix S. And generally, to get k-th level matrix S k, one can apply this analysis to upper left sub-matrix N N of size k of matrix S k k-, where k {,..., log N}. Note, that applying filters (4) to an image, give the same results as multiplying matrices S = M 8 F M, where matrix M is taken from Example. herefore, S may be treated as extractor of image features on the first level of wavelet decomposition, similar as above in the Haar decomposition case. Because on the second and next levels only the part of a matrix is transformed (opposite to Haar decomposition) these extractors on these levels are different. For example, for N=8 the products of the nonstandard wavelet decomposition levels are shown in Fig. 4. a) b) c) Fig. 4. he D wavelet functions product treated as extractors. Decomposition levels: a) first, b) second, c) third All considerations, which have been presented until now for the classical of Haar functions, have applications in that case too, with the exception of extractors distribution (Fig. 4). he Haar decomposition can be simply implemented as matrix multiplication. he wavelet algorithm is a little more efficient. 4 Experimental Results o test our method the well known benchmarks have been used. Each of these images was of size a a 8 bits, where a {3, 64,8, 56}. By analysing the Figs. 3-4 we can divide areas of a figure into 4 equal pieces. Each piece has dimension ( N /) ( N /) and is called A, H, V and D. Location of these areas presents Fig. 5. Each piece (A, H, V or D) for N = 8 includes sixteen appropriate sub-squares from Fig. 3-4. According to presented arguments, mentioned areas possess different features: A (Approximation), H (Horizontal), V (Vertical), D (Diagonal). Fig. 5 presents Baboon one of the grey-level test images and its wavelet and Haar spectra. he spectra images are different what directly follows from Figs. 3-4. aking into account mentioned features of areas some differences between spectres can be shown.

he New Graphic Description of the Haar Wavelet ransform 7 A H V D Fig. 5. Principle of spectra partitioning; original image and its wavelet and Haar spectra respectively In Fig. 6 are shown differences between origin image and compressed one for wavelet and Haar method of analysis, respectively after removing some coefficients. he exact information about distribution of spectral coefficients allows us to match easily up the compression ratio with the type of image. Obtained results for Haar matrix-based method and wavelet method were compared by means of PSNR coefficients. hese results of investigations are collected in ab.. From this table one can see that Haar reconstructed images have slightly better quality. From ab. (last column) follows, that after removing all horizontal and vertical details on the first level of decomposition we get exactly the same PSNR of both methods reconstructed images because of the proportionality of the diagonal detail coefficients. he different cases of removing the spectral coefficients can be applied as well. hese entire processes are based on the fact, that appropriate selection and modification of the spectral coefficients may preserve the contents of the image. Between Haar matrix-based method and the wavelet one can be observed quantitative and graphic relationship. Let d H and d W stand for diagonal coefficients from Haar and wavelet spectrum matrix respectively, both of degree n. hen d = n d. able. he PSNR of reconstructed images after appropriate details elimination Method Details Horizontal (H) Vertical (V) Diagonal (D) H W Horizotal +Vertical (H+V) Wavelet decomposition 9,754 7,3697 3,48 5,383 Haar decomposition 9,769 7,370 3,487 5,383 a) b) Fig. 6. Horizontal (a) and horizontal with vertical (b) details elimination and loosed information after applied wavelet and Haar matrix-based method, respectively

8 P. Porwik and A. Lisowska 5 Concluding Remarks In the paper it has been shown the new graphic way of presentation of decomposition levels for both the Haar matrix-based method and wavelets. As it has been shown both methods can be modelled on the basis of the wavelets theorem. he D Haar matrix method of calculations like the D Fast Fourier ransform has complexity O(4N log N ) [4], classical D fast wavelet method of calculations has complexity O(6 / 3 N ) only [3,,]. his complexity can be decreased to O(4 / 3 N ) by suitable organization of calculations [0]. Described complexity factors are determined as number of additions and multiplications in computation process. he graphic distribution of the Haar-wavelet spectral coefficients also has been presented. Additionally, knowledge about spectra distribution allows us to point appropriate selection or modification (reduction) of the Haar-wavelet coefficients. References. Addison P. S., Watson J. N., Feng.: Low-Oscillation Complex Wavelets, Journal of Sound and Vibration, Vol. 54 (4), 733-76. (00). Ahmed N., Rao K. R.: Orthogonal ransforms for Digital Signals Processing. Springer- Verlag. Berlin, Heidelberg. (975) 3. Castleman K.R.: Digital Image Processing. Prentice-Hall. New Jersey. (996) 4. Daubechies I.: Recent results in wavelet applications, Journal of Electronic Imaging, Vol. 7 No. 4, pp. 79-74. (998) 5. Drori I., Lischinski D.: Fast Multiresolution Image Operations in the Wavelet Domain, IEEE ransactions on Visualization and Computer Graphics, Vol. 9, No. 3, July- September, pp. 395-4. (003) 6. Harmuth H.F.: Sequence heory. Foundations and applications. Academic Press. New York. (977) 7. Haar A.: Zur heorie der orthogonalen Functionsysteme. Math Annal. No 69, pp. 33-37. (90) 8. Jorgensen P.: Matrix Factorizations, Algorithms, Wavelets, Notices of the American Mathematical Society, Vol. 50, No 8, September, pp. 880-894. (003) 9. Lisowska A.: Nonlinear Weighted Median Filters in Dyadic Decomposition of Images, Annales UMCS Informatica AI, Vol., pp.57-64. (003) 0. Lisowska A., Porwik P.: New Extended Wavelet Method of D Signal Decomposition Based on Haar ransform. Mathematics and Computers in Simulation. Elsevier Journal. (to appear). Mallat S. A.: heory for Multiresolution Signal Decomposition: he Wavelet Representation, IEEE rans. Pattern Analysis and Machine Intelligence, Vol.,. Walker J. S.: Fourier Analysis and Wavelet Analysis. Notices of the American Mathematical Society. Vol. 44, No 6, pp. 658-670. (997)