Signals contain broad trends and localized details that occur at different scales. Separating these components produces representations suited to compression and denoising, while allowing each scale to be processed efficiently. We build orthonormal wavelet bases from nested approximation spaces, derive fast decomposition and reconstruction algorithms in one and two dimensions, and explain how filter design controls localization, smoothness, and cancellation of polynomials.
A multiresolution approximation of L2(R) consists of nested closed subspaces (Vj)j
L2(R)⊃…⊃Vj−1⊃Vj⊃Vj+1⊃…⊃{0}(4.1)
related by dyadic scaling and invariant under translations on the corresponding dyadic grid:
f∈Vj⟺f(⋅/2)∈Vj+1andf∈Vj⟺∀n∈Z,f(⋅+n2j)∈Vj
Large j corresponds to coarse approximation spaces, and 2j is often called the “scale”.
At the fine-scale limit on the left of (4.1), ∪jVj is dense in L2(R). Equivalently, PVj(f)→f as j→−∞, where PV denotes orthogonal projection onto V:
PV(f)=f′∈Vargmin∣∣f−f′∣∣.
The limit on the right of (4.1) means that ∩jVj={0}, or equivalently that PVj(f)→0 as j→+∞.
The first example consists of piecewise constant functions on dyadic intervals
Vj={f∈L2(R);∀n,f is constant on [2jn,2j(n+1)[},(4.2)
A second example is the space used for Shannon interpolation of bandlimited signals
Vj={f;Supp(f^)⊂[−2−jπ,2−jπ]}(4.3)
whose elements are recovered exactly from the samples f(2jn). As for piecewise constant signals, the sampling grid has spacing 2j. Here, however, orthogonal projection is a bandlimiting operation:
PVj(f)=F−1(f^⊙1[−2−jπ,2−jπ]).
Scaling functions.
We also require a scaling function φ∈L2(R) such that
{φ(⋅−n)}n is a Hilbertian orthonormal basis of V0.
By the dilation property, this implies that
{φj,n}n is a Hilbertian orthonormal basis of Vjwhereφj,n:=2j/21φ(2j⋅−2jn).
The normalization ensures ∣∣φj,n∣∣=1.
Note that one then has
PVj(f)=n∑⟨f,φj,n⟩φj,n.
Figure 4.1 illustrates the effects of translation and scaling.
Figure 4.1. Translations and dilations of a scaling function generate the approximation spaces. The Shannon scaling function φ(t)=sin(πt)/(πt) is illustrated, with horizontal coordinate x/2j and heights relative to 2−j/2.
For the case of piecewise constant signals (4.2), one can use
φ=1[0,1[andφj,n=2−j/21[2jn,2j(n+1)[.
For the case of Shannon multiresolution (4.3), one can use φ(t)=sin(πt)/(πt) and one verifies
Figure 4.2. Haar scaling and wavelet functions. Both have amplitude 2−j/2 and unit L2 norm.
Spectral orthogonalization.
In many applications, V0 is generated by translates of a function that are not orthogonal: V0=Span{θ(⋅−n)}n∈Z. The next proposition orthogonalizes this family in the Fourier domain.
Figure 4.3 shows the orthogonal cardinal spline functions obtained by this construction.
Figure 4.3. Orthogonalization of B-splines to define cardinal orthogonal spline functions.
Spline interpolation provides a typical application. For example, cubic splines are generated by translates of a box-spline function θ, which is a compactly supported piecewise polynomial.
Figure 4.5. Three successive Haar approximations (top) and their extracted details (bottom). Coarser approximations use fewer intervals.
Figure 4.5 illustrates how subtracting consecutive approximation-space projections isolates the details at each scale.
Shannon and splines.
Figure 4.6 compares the sharp frequency partitions of Shannon wavelets with the smooth transitions of spline wavelets. Shannon wavelets can be viewed as a limiting case as the spline degree increases.
Figure 4.6. Spline and Shannon wavelet segmentation of the frequency axis.
On the periodic domain T=R/Z, we use period 1 rather than the 2π-period convention of the Fourier chapter. To obtain an orthonormal wavelet basis of L2(T), periodize the wavelets and restrict their translation points 2jn to [0,1], choosing 0⩽n<2−j. As in (1.6), the periodization of f∈L1(R) is
fP=n∈Z∑f(⋅−n)∈L1(T).
For an integer coarsest level j0⩽0, this gives the family
{ψj,nP;j⩽j0,0⩽n<2−j}∪{φj0,nP;0⩽n<2−j0}.
which is an orthonormal basis of L2(T), illustrated in Figure 4.7.
One can also construct wavelet bases using Neumann (mirror) boundary conditions, but this is more involved.
Figure 4.7. Periodized basis functions. Only the translations 0⩽n<2−j are distinct, and j0=0 is a common choice of coarsest scale.
We assume access to a discrete signal aJ∈RN with N=2−J at a fixed scale 2J, whose entries are inner products with the scaling functions, i.e.
∀n∈{0,…,N−1},aJ,n=⟨f,φJ,nP⟩≈2J/2f(2Jn),(4.5)
for the underlying continuous function f. The approximation uses the normalization ∫φ=1. The equality assumes that acquisition gives exact access to PVJf, much as Shannon sampling assumes bandlimiting. This model is reasonable when the scaling functions (φJ,n)n approximate the acquisition device’s point-spread function. Preprocessing the measurements can sometimes improve agreement with (4.5).
Starting from aJ, the discrete wavelet transform computes the coefficients
in order of increasing j. After an approximation vector aj has been used to compute the next scale, it can be discarded; the detail vectors dj are retained.
The forward discrete wavelet transform on a bounded domain is thus the orthogonal finite-dimensional map
aJ∈RN⟼{dj,n;J<j⩽0,0⩽n<2−j}∪{a0∈R}.
By orthogonality, the inverse transform is the adjoint.
Figure 4.8 shows examples of wavelet coefficients. For each scale 2j, there are 2−j coefficients.
Figure 4.8. Wavelet coefficients. The first column shows the input signal and its packed decomposition; the other panels show individual detail scales.
Figure 4.9 illustrates the computation of these weights for the Haar system.
Figure 4.9. Haar filter weights as inner products.
We denote by ↓2:RK→RK/2 the subsampling operator by a factor of 2, i.e.
u↓2:=(u0,u2,u4,…,uK−2).
Throughout the following derivation, the scaling function, wavelet, and filters are real, and the filters decay sufficiently fast. The notation hˉn=h−n and gˉn=g−n denotes reflection. Complex filters would require conjugation as well.
Figure 4.10 shows two successive decomposition steps, each separating a coarse approximation from its details.
Figure 4.10. Forward filter bank decomposition.
The FWT thus operates as follows. The same real filters also act on complex-valued input signals:
Input: signal f∈CN.
Initialization:aJ=f.
Forj=J,…,j0−1.
aj+1=(aj⋆hˉ)↓2anddj+1=(aj⋆gˉ)↓2
Output: the coefficients {dj}J<j⩽j0∪{aj0}.
If the supports of h and g each contain at most C indices, then evaluating each Wj requires (2C)2−j operations, so that the complexity of the whole wavelet transform is
j=J+1∑0(2C)2−j=2C(2−J−1)<2CN.
This shows that the fast wavelet transform is a linear-time algorithm.
Figure 4.11 shows the iterative extraction of the wavelet coefficients.
Figure 4.12 illustrates the storage layout: at each step, the new vectors aj and dj occupy the left portion of the output array.
Figure 4.11. Pyramidal computation of wavelet coefficients: approximation vectors aj on the top row and detail vectors dj below.
Figure 4.12. Packed coefficient arrays after one, two, and three wavelet decomposition steps.
Fast Haar transform.
For the Haar wavelets, one has
φj,n=21(φj−1,2n+φj−1,2n+1),
ψj,n=21(φj−1,2n−φj−1,2n+1).
This corresponds to the filters
h=[…,0,h[0]=21,21,0,…],
g=[…,0,g[0]=21,−21,0,…].
The Haar transform iterates normalized sums and differences:
The basis also includes wavelet–scaling, scaling–wavelet, and scaling–scaling products. The anisotropic 2-D transform follows the same separable construction as the 2-D FFT in Section 2.5.2. Treat the image aJ∈R2−J×2−J as a matrix, apply the 1-D FWT to each row, and then apply it to each column. The total cost is O(N) for N=2−2J pixels.
Figure 4.16. Steps of the anisotropic wavelet transform.
The anisotropic atoms (4.12) have independent scales in the two coordinate directions. For compactly supported wavelets, their supports lie in axis-aligned rectangles of size proportional to 2j1×2j2. This directional bias can produce visible artifacts in denoising and compression when it does not match the image geometry.
Figure 4.17. Anisotropic (left) versus isotropic (right) wavelet coefficients.
An alternative uses a common scale in both directions. Tensor products of one-dimensional approximation spaces give a two-dimensional multiresolution
L2(R2)⊃…⊃Vj−1⊗Vj−1⊃Vj⊗Vj⊃Vj+1⊗Vj+1⊃…⊃{0}.
We write
VjO:=Vj⊗Vj
for this isotropic 2-D approximation space.
Recall that the tensor product of two closed subspaces V1,V2⊂L2(R) is
Here the span is closed in L2 on an unbounded domain; on the torus, the wavelets are periodized. Figure 4.18 displays examples of these wavelets.
Figure 4.18. 2-D wavelets and a schematic support centered at (2jn1,2jn2), with width K2j (right).
Haar 2-D multiresolution.
The 2-D Haar construction gives piecewise constant approximations: functions in Vj⊗Vj are constant on squares of size 2j×2j. Figure 4.19 shows the corresponding projections of an image.
Figure 4.19. 2-D Haar approximation PVjOf for increasing j.
Discrete 2-D wavelet coefficients.
As in (4.5), assume that acquisition provides inner products of the continuous signal f with scaling functions at scale 2J, with N=2−J samples per direction:
where the vertical operators are defined analogously to the horizontal operators, acting on rows.
Figure 4.22. Forward 2-D filterbank step.
Figure 4.23. One step of the 2-D wavelet transform algorithm.
These two forward steps are shown in the block diagram in Figure 4.22. The updates can be performed in place, storing all coefficients in an image of N2 pixels, as shown in Figure 4.23. This produces the familiar multiscale arrangement used in Figure 4.21.
Fast 2-D wavelet transform.
The 2-D FWT algorithm iterates these steps through the scales:
Implementing the FWT requires the filters h and g, rather than explicit formulas for the scaling function φ and wavelet ψ. Most useful wavelets have no elementary closed form; their refinement equations define them implicitly, and the cascade algorithm approximates them.
This section derives constraints on the filters and gives examples. Under the usual quadrature-mirror construction, the low-pass filter h determines the high-pass filter g.
Figure 4.25. Constraints on low-pass and high-pass filters.
Quadrature mirror filters.
Quadrature mirror filters (QMF) define g as a function of h so that the conditions of Theorem 4.5 are automatically satisfied. Most wavelet constructions implicitly use this choice (other phase choices can yield different wavelets spanning the same detail spaces).
One can construct a multiresolution wavelet pair by designing a finite filter h satisfying (C1)–(C∗). The scaling function is obtained through the infinite product (4.16). Except in special cases such as Haar wavelets, it has no elementary closed form. The QMF relation (4.19) then defines g, and (4.17) defines ψ.
Fourier atoms are fixed exponentials, whereas mother wavelets can be designed to meet several requirements:
Size of the support.
Cancellation of polynomials, measured by the number p of vanishing moments.
Symmetry (for compactly supported scalar orthogonal wavelets, the Haar system is the exceptional symmetric case).
Smoothness (number of derivatives).
We now explain how these design requirements interact with conditions (C1)–(C4).
Vanishing moments.
A wavelet ψ has p vanishing moments if
∀k=0,…,p−1,∫Rψ(x)xkdx=0.(4.21)
Vanishing moments make ⟨f,ψj,n⟩ small when f has regularity Cα with α<p on Supp(ψj,n). A Taylor expansion of f about 2jn on the wavelet’s support explains this cancellation.
The vanishing-moment condition has the following equivalent Fourier characterization; see Figure 4.26.
Figure 4.26. Vanishing moments correspond to vanishing derivatives of the Fourier transform.
Conditions (C1) and (C2) give h^(π)=0, so every admissible wavelet has at least 1 vanishing moment: ∫ψ=0. By (4.22), additional vanishing moments require the Fourier transform h^ to vanish to higher order at ω=π.
Support.
Figure 4.27 shows the wavelet coefficients of a piecewise smooth signal. The cancellation provided by ψ suppresses coefficients in smooth regions, leaving the largest coefficients near singularities.
Figure 4.27. Location of large coefficients for Haar (left) and Daubechies-4 (right) wavelets applied to the same piecewise-smooth signal.
Choosing ψ with short support limits how many wavelets intersect each singularity.
One can show that the size of the support of ψ is proportional to the size of the support of h.
Short support competes with the vanishing-moment requirement (4.21). Indeed, one can prove that for an orthogonal wavelet basis with p vanishing moments
∣Supp(ψ)∣⩾2p−1,
where the left-hand side denotes the length of the smallest closed interval containing the support of a compactly supported orthogonal mother wavelet.
Chapter 5 studies in detail the tradeoff between support size and vanishing moments in nonlinear approximation of piecewise smooth signals.
Smoothness.
In compression or denoising applications, an approximate signal is recovered from a partial set IM of coefficients,
fM=(j,n)∈IM∑⟨f,ψj,n⟩ψj,n.
This finite sum is at least as smooth as ψ.
A smooth wavelet ψ helps avoid visible reconstruction artifacts. Smoothness controls the regularity of the reconstructed signal, while vanishing moments and localization primarily determine the approximation rates studied below. These properties are often linked: in many families, including the Daubechies wavelets introduced next, more vanishing moments also bring greater smoothness.
To build a wavelet ψ with a fixed number p of vanishing moments, one designs the filter h, and uses the quadrature mirror filter relation (4.19) to compute g. One therefore looks for h such that
These conditions give algebraic relations between the coefficients of h, which can be solved explicitly using the Euclidean division algorithm for polynomials.
The resulting Daubechies wavelets have p vanishing moments and attain the minimum support length 2p−1 among compactly supported orthogonal wavelets.
The following filter coefficients are rounded to four decimal places. For p=1, the construction gives the Haar system (up to the overall sign of the wavelet), with
h=[h0=0.7071;0.7071].
For p=2, one obtains the celebrated Daubechies 4 filter
Figure 4.28 compares Daubechies mother wavelets with increasing numbers of vanishing moments. Each continuous wavelet is approximated by a discrete wavelet ψˉj,n computed on a fine grid of N samples. Applying the inverse transform to the following coefficient vector produces that discrete wavelet: dj′,n′=δj−j′δn−n′.
Figure 4.28. Daubechies mother wavelets ψ with increasing numbers p of vanishing moments.