5. Linear and Nonlinear Approximation

Painting detail by Louis Peyré (1923–2012). About the paintings.
When only a limited number of coefficients can be retained, the choice of representation determines which features of a signal survive. Approximation rates quantify this tradeoff and help explain the performance of compression and denoising methods. We compare fixed and adaptive coefficient selection, relate Fourier and wavelet errors to smoothness and edges, and examine triangulations and curvelets for images with smooth contours.
The analysis concerns functions on a continuous domain, with .
5.1 Approximation¶
5.1.1 Approximation in an Orthonormal Basis¶
Let be an orthonormal basis of , with for signals or for images. The complete expansion in this basis,
reconstructs the signal exactly. Approximation and processing methods modify the coefficients , introducing a reconstruction error.
The simplest approximation reconstructs the signal from a subset of coefficients:
The reconstructed signal is the orthogonal projection of onto the space
If the selected space depends on , the overall approximation map may be nonlinear, even though projection onto each fixed space is linear.
Since the basis is orthogonal, the approximation error is
The central choice is the retained index set , which may depend on the signal .
5.1.2 Linear Approximation¶
Fixing independently of the input gives a linear approximation: the same coefficients are retained for every . The map is then orthogonal projection onto a fixed space , and it satisfies
For the Fourier basis and an even coefficient budget, one usually selects the low-frequency atoms
For a 1-D wavelet basis, one usually selects the coarse wavelets
where is selected such that .
Figure 5.1. Linear versus nonlinear wavelet approximation.
Figure 5.1, center, illustrates linear wavelet approximation. Discarding all fine-scale details blurs singularities, where the approximation is least accurate.
5.1.3 Nonlinear Approximation¶
Allowing to depend on gives a nonlinear approximation. To choose that minimizes , orthogonality reduces the problem to retaining the coefficients of largest magnitude:
When there are no ties at the cutoff, this can be obtained by thresholding
where depends on the number of coefficients ,
Computation of the threshold.
Order the coefficient magnitudes in nonincreasing order. For a finite vector, write
If , any threshold retains exactly coefficients. At a tie, a deterministic rule must select among equal coefficients. Thus the threshold and coefficient count do not determine each other uniquely. Figure 5.2 illustrates the relationship.
The following proposition shows that the decay of the ordered coefficients governs the decay of the nonlinear approximation error.
Figure 5.2. Ordered coefficient magnitudes and the threshold used for nonlinear approximation.
Hard thresholding.
For the coefficient set selected by a threshold , the nonlinear approximation can be written as
where
is the hard thresholding operator displayed in Figure 5.3.
Figure 5.3. Hard thresholding.
5.2 Signal and Image Modeling¶
A signal model specifies a constraint , where is the class of signals of interest. Figure 5.4 shows different image models, which we describe below.
Figure 5.4. Examples of image models. The bounded-variation example is generated by ROF total-variation denoising of white noise.
5.2.1 Uniformly Smooth Signals and Images¶
Signals with derivatives.
The simplest model consists of uniformly smooth signals with bounded derivatives
where is fixed. For integer , in one dimension
In higher dimensions, take the maximum over all partial derivatives of total order at most . For noninteger , , use the usual Hölder norm: derivatives through order are bounded, and order- derivatives are -Hölder continuous.
Sobolev smooth signals and images.
For integer , a signal in the model (5.5) has derivatives with bounded energy:
For integer and periodic boundary conditions, use the identity
Here denotes Fourier coefficients as in (2.2), now on rather than :
This motivates the homogeneous Sobolev seminorm
so that for smooth periodic functions. The same seminorm applies when the derivatives exist only in the distributional sense and belong to .
This definition extends to distributions and signals of arbitrary dimension as
The periodic Sobolev model
includes the corresponding periodic model (5.5) for integer , after adjusting the radius of the ball. For noninteger , Hölder regularity gives Sobolev regularity of every order , but need not give regularity of order itself.
Figure 5.5 shows progressively smoother images obtained by Gaussian filtering of the same white-noise realization. Each result is rescaled to the same mean and variance, so the comparison emphasizes spatial regularity rather than a loss of contrast.
Figure 5.5. Progressive Gaussian filtering of one white-noise image. Smoothing widths increase from left to right; the displayed images have the same mean and variance.
5.2.2 Piecewise Regular Signals and Images¶
Piecewise smooth signals.
A piecewise smooth 1-D signal is on the intervals separated by at most interior singular points:
Here denotes the restriction of to the open interval .
Piecewise smooth images.
A piecewise smooth image is a function with regularity away from at most rectifiable curves:
Here denotes curve length. The bound applies separately within each smooth region, with uniform one-sided regularity up to its edges.
Segmentation methods such as the one proposed by Mumford and Shah [24] implicitly assume such a piecewise smooth image model.
5.2.3 Bounded Variation Signals and Images¶
Bounded variation provides a more flexible model for signals with edges
For and , this model includes the piecewise smooth signal and image models (5.9) and (5.10) when , after adjusting the constants. Bounds on the derivatives, jump sizes, and total edge length then control the variation.
The total variation of a smooth function is
where
is the gradient at . Total variation also extends to discontinuous images, including those with jumps across edges. The coarea formula expresses the total variation of a piecewise smooth image as an integral of the perimeters of its superlevel sets:
Here the perimeter is relative to the image domain. For smooth functions in two dimensions it agrees, for almost every , with the length of the level curve. For a bounded set with piecewise smooth boundary, taking total variation on all of gives
The model of bounded variation was introduced in image processing by Rudin, Osher and Fatemi [28].
5.2.4 Cartoon Images¶
The bounded-variation model (5.11) controls total perimeter but does not require individual edges to be smooth. For images with smooth contours, incorporating that additional geometry can improve approximation and processing.
The cartoon model consists of 2-D functions that are away from at most smooth edge curves :
Each curve is parameterized by arc length on , with a uniform bound on and its norm. Figure 5.6 illustrates a progressive dead-leaves construction: opaque shapes are placed successively, producing smooth visible contour segments and occlusion boundaries.
Figure 5.6. Progressive dead-leaves construction: later opaque shapes cover earlier ones, producing a family of cartoon images.
Optical diffraction can blur these edges, motivating the blurred cartoon model
where is the sharp-image model (5.13) and specifies the admissible blur kernels. For example, may be required to be smooth and localized in both space and frequency. Unknown blur makes it difficult to first detect the edges and then process the smooth regions separately.
Figure 5.7 shows examples of images in and .
Figure 5.7. A grayscale frame from Feline Follies (1919), a mathematical jump along a smooth graph, and a Gaussian-smoothed cartoon. Film frame: Pat Sullivan, via Wikimedia Commons, public domain.
5.3 Efficient Approximation¶
5.3.1 Decay of Approximation Error¶
To process signals in efficiently, we seek an orthonormal basis in which the nonlinear approximation error tends to 0 as rapidly as possible when grows.
Polynomial error decay.
This error decay is measured using a power law
Here is common to all signals in the model; larger values mean faster decay. The exponent depends on the basis and the model , and measures how efficiently the basis represents that class. The constant may depend on the particular signal .
Relevance for compression, denoising and inverse problems.
Approximation rates have practical consequences. Section 6.1 relates compression error to nonlinear approximation error, explaining why an effective approximation basis also supports efficient compression.
Chapter 7 develops a similar connection for thresholding denoisers. Thresholding forms a nonlinear approximation of the noisy image, and the expected denoising error is controlled by how well the basis approximates the clean signal.
Chapter 10 uses compressibility in a chosen basis to address inverse problems such as super-resolution and inpainting. Efficient approximation of the unknown signal helps recover missing information, provided the measurement operator retains enough information about sparse combinations of basis atoms. Recovery performance therefore depends on both the basis and the measurements.
Comparison of signals.
With the basis fixed, the decay of compares the approximation complexity of different images. Figure 5.9 illustrates how intricate geometry and textures slow down wavelet approximation.
To reveal approximate power-law behavior, the error curves are displayed on logarithmic axes. An exact power law has the form
and appears as a straight line with slope . For sampled data, this behavior is generally studied when ; as , retaining nearly all coefficients drives the error to zero.
Figure 5.8. Test images with different structures: smooth, cartoon, flower, and mandrill.
Figure 5.9. Wavelet approximation error for the images in Figure 5.8.
5.3.2 Comparison of bases.¶
For a fixed image , the decay of compares the efficiency of different bases. Figure 5.11 makes this comparison for an image containing contours and textures. The Fourier basis of Section 2.5 performs poorly here: periodic boundaries create artifacts, and globally supported atoms do not follow local contours. The cosine basis removes the periodic boundary discontinuity through symmetric extension, but its atoms remain global. Local DCT bases use cosine atoms on small square patches, improving localization. At small coefficient budgets , however, their block structure produces visible artifacts. The isotropic wavelet basis of Section 4.5.2 performs best in this example by combining localized atoms with a multiresolution organization.
Figure 5.10. Fourier, DCT, and wavelet approximations of the same flower image, each retaining real orthonormal coefficients.
Figure 5.11. Comparison of approximation error decay for different bases.
Figure 5.12 summarizes the approximation rates developed in the following sections for different data models.
Figure 5.12. Summary of linear and nonlinear approximation rates for different classes of 1-D signals and images.
5.4 Fourier Linear Approximation of Smooth Functions¶
For integer , the smooth model (5.5) bounds all continuous derivatives through that order. Greater regularity of , measured by a larger , permits faster approximation. Figure 5.5 illustrates the related Sobolev measure of smoothness.
5.4.1 1-D Fourier Approximation¶
A 1-D signal is associated with a 1-periodic function defined for .
Low pass approximation.
For even , consider the linear Fourier approximation that retains frequencies up to :
where we use the 1-D Fourier atoms
This symmetric cutoff retains Fourier atoms; the extra coefficient does not affect the asymptotic rates below.
Figure 5.13 shows these approximations for increasing . The jumps in produce substantial error and ringing near the singularities.
Figure 5.13. Fourier approximation of a signal.
This low-pass approximation is a convolution, since
The kernel is the Dirichlet kernel introduced in the Fourier chapter.
The following elementary bound shows that this approximation error decays for signals.
Using the full energy of gives a sharper bound under the same assumptions. The argument also applies to the larger Sobolev class.
This rate is optimal uniformly over a Sobolev ball. The best -term Fourier approximation satisfies the same upper bound because it is at least as accurate as the low-pass approximation; individual functions may have faster decay.
For signals with piecewise Lipschitz regularity in the model (5.9), such as the example in Figure 5.13, the general bound for both linear and nonlinear Fourier approximation errors is
and Fourier atoms are no longer optimal for approximation.
For example, the interval indicator has coefficients for , and hence when for both linear and nonlinear approximations.
5.4.2 Sobolev Images¶
The same argument applies to images and higher-dimensional data through the Sobolev seminorm (5.7) with .
For an -regular Sobolev image, the linear and nonlinear approximation errors satisfy
For -dimensional data , the corresponding error bound is .
For an image with piecewise Lipschitz regularity and finite-length edges in the model (5.10), the linear and nonlinear errors satisfy the slower general bound
and Fourier atoms are no longer optimal for approximation.
Figure 5.14. Linear (top row) and nonlinear (bottom row) Fourier approximation.
5.5 Wavelet Approximation of Piecewise Smooth Functions¶
Wavelets improve approximation near singularities because their support is localized.
5.5.1 Decay of Wavelet Coefficients¶
To approximate smooth regions efficiently, choose wavelets with sufficiently many vanishing moments, denoted by :
Choose , where is the regularity of the signal outside singularities (for instance jumps or kinks).
Figure 5.15. Singular and regular regions of a signal (left) and an image (right).
To quantify the approximation error decay for piecewise smooth signals (5.9) and images (5.10), one treats wavelets supported in smooth regions separately from those crossing singularities. Figure 5.15 locates the singular and regular regions of a signal and an image.
5.5.2 1-D Piecewise Smooth Approximation¶
For a piecewise smooth 1-D signal in the model (5.9), the large coefficients concentrate near singularities. Denote the finite set of singular points by .
For piecewise Lipschitz signals, the wavelet rate is faster than the jump-limited Fourier bound in (5.19). It also matches the smooth-signal rate (5.16): finitely many singularities do not worsen the asymptotic exponent in one dimension. The rate (5.23) is asymptotically optimal for this class.
Figure 5.17. 1-D wavelet approximation.
Figure 5.17 shows examples of wavelet approximation of singular signals.
5.5.3 2-D Piecewise Smooth Approximation¶
We now give the counterpart of Theorem 5.5 for 2-D functions.
The wavelet rate improves on the Fourier rate (5.20), but it still fails to exploit the full regularity away from the edge curves.
This rate also holds for the broader bounded-variation model (5.11), for which wavelet approximation is asymptotically optimal.
Figure 5.18. 2-D wavelet approximation.
Figure 5.18 shows wavelet approximations of a bounded variation image.
5.6 Approximation of Cartoon Images¶
The isotropic, compactly supported wavelets considered here occupy squares that do not follow the smooth contours of geometric images (5.13). These contours have more structure than the finite-length level sets allowed by the bounded-variation model (5.11).
5.6.1 Wavelet Approximation of Cartoon Images¶
The bound (5.31) gives a wavelet approximation rate of for cartoon images (5.13). Even the simple indicator , where is a disk, can attain this slow rate: isotropic wavelets do not efficiently follow its curved boundary. The smoothed cartoon model (5.14) can behave similarly when the coefficient budget is too small to resolve the blur.
Figure 5.19 shows that many large coefficients are located near edge curves, and retaining only a small number leads to a poor approximation with visually unpleasant artifacts.
Figure 5.19. Wavelet approximation of a cartoon image.
5.6.2 Finite Element Approximation¶
An adaptive triangulation can improve the approximation by using elongated triangles aligned with the edges. Figure 5.20 shows an example of such a triangulation.
Figure 5.20. A cartoon with smooth variation on both sides of an elliptical jump, a triangulation elongated along that boundary, and the continuous interpolant.
Select points in the image domain and connect them into a triangulation. Define by piecewise affine interpolation on the resulting triangles.
Figure 5.21. The same mesh over a lightened interpolant (left), with the boxed boundary region enlarged (right). Thin triangles follow the red singularity curve; the arrow indicates its tangent. Smooth regions use nearly equilateral elements.
Figure 5.21 illustrates a construction for cartoon images (5.13) with . In smooth regions, use nearly equilateral triangles of width . Near the edges, exploit the contour regularity by placing elongated triangles of length along the contours and width across them. Such a triangulation yields the error bound
which improves over the wavelet approximation error decay (5.31).
Implementing this construction requires estimating the edges. This is particularly difficult for blurred cartoon images with an unknown smoothing kernel .
Practical methods use heuristics or greedy rules to select sample points and triangulate them from discrete or noisy data. Figure 5.22 uses a known synthetic contour to isolate the effect of mesh geometry. Both regions have smooth, nonaffine intensities. The displayed image is decoded from an explicit mesh stream whose bit count includes vertex coordinates, values, connectivity, and headers; this example does not assume an optimal mesh code.
Figure 5.22. Compression of a piecewise-smooth cartoon using a contour-aligned mesh and JPEG-2000 at the same transmitted bit budget. From left to right: original, mesh, decoded image, and JPEG-2000 image. Mesh costs include coordinates, nodal values, connectivity, and headers.
5.6.3 Curvelet Approximation¶
A fixed family of oriented, anisotropic atoms offers an alternative to adaptive triangulations. Candès and Donoho introduced the curvelet frame for this purpose [5].
Curvelets.
At fine scales , the geometry can be illustrated by applying parabolic scaling to a horizontally oriented mother function ,
followed by translation and rotation,
where is the rotation of angle .
The atom is localized near and oriented at angle . Its dimensions obey “width length”, the same relation used for adaptive triangles near edges. This scaling matches the contour geometry of the cartoon model (5.13) with .
Figure 5.23. A curvelet in space (left) and its localization in the Fourier domain (right).
Figure 5.23 illustrates this localization in space and frequency.
Parameter discretization.
To build an image representation, one needs to sample the position and orientation . The angular sampling interval depends on the scale:
and the spatial grid depends on both scale and orientation:
Figure 5.24 shows this sampling pattern.
Figure 5.24. Sampling pattern for the curvelet positions.
Curvelet tight frame.
The scaling and sampling formulas above describe the geometry of curvelets. An exact tight frame additionally requires carefully chosen frequency windows and a low-frequency family; an arbitrary mother function does not suffice. With this construction, write the complete family as , where includes the fine-scale indices and the low-frequency indices. Then
The reconstruction converges in . These are the Parseval-frame identities; the family is redundant and its atoms are not mutually orthogonal.
One discrete construction for an image with pixels uses atoms [7].
Curvelet approximation.
A nonlinear -term approximation in curvelets is defined as
The complete index set includes the low-frequency family, and the threshold determines the number of retained coefficients. As before, ties require a selection rule if an exact coefficient count is prescribed. Because the frame is not orthogonal, need not be the best -term curvelet approximation.
Far from an edge, at locations , cancellation makes the coefficients small. When lies near an edge with tangent direction , the coefficient rapidly decreases as the orientation mismatch grows. Figure 5.25 compares this adaptation to edges with the square supports of directional wavelets.
Figure 5.25. Wavelet (left) and curvelet (right) approximation of a cartoon image.
Combining spatial cancellation, directional selectivity, and scale-dependent sampling gives the approximation bound
for images in the cartoon model (5.13) for . This nearly matches the adaptive-triangulation rate (5.32), while allowing to be computed in operations for an image of pixels.
Redundancy complicates the use of curvelets for compression, but their approximation properties are useful for denoising geometric images and textures. Figure 5.26 compares curvelet and wavelet denoising using the thresholding method of Section 7.3.1.
Figure 5.26. Comparison of translation-invariant wavelet denoising and curvelet denoising.