BookNotesSlidesP-sets Syllabusdraft · v0.2.64.1
◀▲⌂▶
💬Comments welcome. To leave a note, select any text and click the note / highlight button that pops up — or open the panel with the tab at the top-right (‹). Notes are visible only inside our private review group.
Course notes · 37 sections from the book · 20 optionalPDFessentials+ usefuleverythingthe full book ↗
💡 In a hurry? Jump to this chapter’s 2 big lessons ↓

Lecture Notes 14 — Pyramids⧉

Course notes cut from Computational Photography, an AI-powered Slopendium for this lecture. Each section links back to its home in the book; sections marked optional go beyond what the lecture needs.

Contents · 32 sections on this page, from 7 chapters of the book
6LINEAR METHODS AND FOURIER ANALYSIS
10EDGES MATTER
13DENOISING
18TONE MAPPING AND DISPLAY
20FIELD OF VIEW EXTENSION AND PANORAMA STITCHING
38REVEALING THE INVISIBLE

Titles jump to the section below; ↗ opens it in the book.

Pyramids and wavelets⧉

in the book↗

Picture this problem. You have a photograph of Earth and a photograph of Jupiter, and you want to join the left half of one to the right half of the other so smoothly that nobody can find the seam. Try the obvious thing, cut both down the middle and paste, and a hard line runs down the join: every detail, coarse and fine, changes at one pixel. Try to hide that line by blurring across the boundary, and now you have smeared Earth's coastlines into Jupiter's cloud bands; the broad colors finally cross-fade, but the fine texture has turned to mush. Neither works because each uses a single scale of blending. What the picture actually needs is to blend gently where it is smooth (the slow sweep of color across the two disks) and sharply where it has detail (the cloud bands, the coastlines) at the same time. A single blur cannot do that, because a blur has one width. The moment we stop treating the image as one thing and start treating it as a stack of things at different scales, the problem becomes manageable.

That stack is what this chapter is about. We will build a multiresolution representation of an image, a tower of versions running coarse to fine, and then learn to split it into overlapping bands of detail that we can edit one at a time. The result is a representation that is local in both space and frequency, the very combination the Fourier chapter told us we could not get for free. Most of the chapter is spent on the two classic constructions, the Gaussian pyramid and the Laplacian pyramid of Burt and Adelson; we close with their principled relatives, wavelets and steerable pyramids.

The idea: process an image at many resolutions⧉

in the book↗

The core idea, due to Peter Burt and Edward Adelson in the early 1980s, is simple: represent the image at several resolutions at once, and handle each scale on its own. A coarse version holds the broad layout: the overall light, the large shapes. A fine version holds the texture and the edges. Once you can reach into each scale independently, a startling range of operations falls out nearly for free: blending (Earth and Jupiter), denoising, tone mapping, compression, feature analysis, coarse-to-fine motion estimation, and, much later in the book, the pooling layers and U-Nets of deep networks. We will preview several of these at the end and develop them properly in their own chapters; the point for now is that they are all the same trick wearing different hats.

There are two flavors of pyramid, and the difference maps cleanly onto frequency. A low-pass pyramid stores, at each level, a lower-resolution copy of the whole image: that is the Gaussian pyramid. A band-pass pyramid stores, at each level, only a narrow band of frequencies (the detail one scale adds over the next coarser one), and that is the Laplacian pyramid. We build the low-pass one first, because the band-pass one is simply the differences between its levels.

The Gaussian pyramid⧉

in the book↗

Begin with the original image. Blur it with a small Gaussian, then throw away every other pixel in each direction, so the result is half as wide and half as tall, a quarter of the pixels. Do the same to that image, and again, and again, until you are down to a handful of pixels. The sequence of ever-smaller, ever-coarser images is the Gaussian pyramid, and stacking them smallest-on-top is what earns it the name (Figure 6.6.1). We write the levels $G_0$ (the original, full resolution), $G_1$, $G_2$, and so on, each $G_{k+1}$ one octave coarser than $G_k$.

The blur-then-downsample step has a name, the reduce operator: $G_{k+1} = \text{reduce}(G_k)$, where reduce means "blur with a small Gaussian, then drop every other sample." The blur is not optional. We are halving the sampling rate, and Chapter 6.4, Sampling, downsampling, and aliasing, was emphatic that you must low-pass before you downsample, or you alias: moiré and jaggies folded in from the frequencies the coarse grid cannot represent. The Gaussian is the prefilter; downsampling by two is the resample. So a pyramid level is not "the image, smaller," it is "the image with its highest frequencies attenuated, then sampled at the rate that octave-removed image deserves."

$$ G_{k+1} = \text{reduce}(G_k) = \big(\text{blur, then downsample by 2}\big)(G_k). $$

Expansion predicts a fine level from the next coarser one. One concrete implementation uses the separable binomial filter $h=[1,4,6,4,1]/16$. Reduce by filtering with $h$ in both axes and retaining samples at even indices. Expand by inserting zeros at the missing positions and filtering with $2h$ along each axis, or $4(h\otimes h)$ in 2-D. The gain compensates for the inserted zeros and preserves a constant image in the interior. Use the same boundary extension and pixel alignment throughout.

Expand is a prediction, not an inverse of reduce. It need not pass through the coarse samples. For odd image dimensions, pass the target fine-level shape explicitly and crop to that shape.

fig-gaussian-pyramid
Figure 6.6.1 (reproduced). The Gaussian pyramid: repeated blur-and-downsample. Starting from the full-resolution image $G_0$ (the base), each level $G_{k+1} = \text{reduce}(G_k)$ is the previous level blurred with a small Gaussian and then downsampled by two, so it is half the width, half the height, and a quarter of the pixels. The tower runs from a large, sharp base to a tiny, blurry apex. The blur before downsampling is the anti-aliasing prefilter; without it the small levels would alias. The whole tower costs only ≈ 4/3 the original pixel count.

The Laplacian pyramid⧉

in the book↗

The Gaussian pyramid is useful but redundant in an unsatisfying way: each level repeats most of the information already in the level below, just blurrier. The interesting question is not "what does the image look like coarse" but "what does each scale add." That is what the Laplacian pyramid captures, and it is built straight out of the Gaussian one.

Take a Gaussian level $G_k$. The next coarser level $G_{k+1}$ is a blurred, shrunk version of it; expand it back up to $G_k$'s size and you get a smooth prediction of $G_k$, everything except the finest octave of detail, which the blur removed. Whatever $G_k$ has that this prediction lacks is exactly the band of detail that this scale contributes. So subtract:

$$ L_k = G_k - \text{expand}(G_{k+1}). $$

That difference image, $L_k$, is the Laplacian pyramid level $k$ (Figure 6.6.2). It is band-pass: it holds neither the broad low frequencies (those survived into $G_{k+1}$ and got subtracted away) nor any frequencies too fine for $G_k$ to represent: mainly the detail between those scales, with overlapping responses rather than sharp octave boundaries. Read the equation back in words: each Laplacian level is what one Gaussian level has that the next coarser one, blown back up, is missing. The coarsest level of the whole structure is special (there is no coarser Gaussian to subtract), so we keep the smallest Gaussian image $G_n$ itself as the apex, a tiny low-pass residual carrying the average brightness and the very largest-scale variation.

The name is a small piece of history. Expanding $G_{k+1}$ and subtracting it from $G_k$ is, up to scaling, a difference of Gaussians (one blur minus a slightly bigger blur), and a difference of Gaussians is a well-known approximation to the Laplacian operator, the thing that measures how much a pixel differs from the average of its neighbors. So each Laplacian coefficient behaves like a local second derivative: near zero in flat regions, large at edges and texture. Hence "Laplacian pyramid."

fig-laplacian-pyramid
Figure 6.6.2 (reproduced). The Laplacian pyramid: band-pass detail levels. Each level $L_k = G_k - \text{expand}(G_{k+1})$ is a Gaussian level minus the next coarser level expanded back to its size: the detail that scale $k$ adds over scale $k+1$. The result is mostly mid-gray (zero) in smooth regions, with bright and dark responses only at edges and texture, coarse at the top, fine at the bottom; it behaves like a local second derivative (a difference of Gaussians). The apex is not a difference but the tiny low-pass residual $G_n$, kept so the pyramid can be inverted.

Reconstruction: an exact encoder and decoder⧉

in the book↗

Here is the property that turns the Laplacian pyramid from a curiosity into a workhorse: it loses nothing. We can put the image back together exactly. Just rearrange the construction equation. We defined $L_k = G_k - \text{expand}(G_{k+1})$, so

$$ G_k = L_k + \text{expand}(G_{k+1}). $$

Read this as a recipe that climbs from coarse to fine. Start at the apex with the residual $G_n$. Expand it and add the band-pass level $L_{n-1}$ to recover $G_{n-1}$. Expand that and add $L_{n-2}$ to recover $G_{n-2}$. Keep going one level at a time, and the last addition hands you back $G_0$, the original image, pixel for pixel. The build (analysis) and collapse (synthesis) are the two loops, one the exact inverse of the other:

Algorithm 1
# analysis: build the Laplacian pyramid
G[0] = im
for k in 0 .. n-1:
    G[k+1] = reduce(G[k])               # blur, then downsample by 2
    L[k]   = G[k] - expand(G[k+1], shape(G[k]))  # band-pass detail at scale k
# L[0..n-1] plus the residual G[n] are the pyramid

# synthesis: collapse it back, coarse to fine
out = G[n]                              # the low-pass residual
for k in n-1 .. 0:
    out = L[k] + expand(out, shape(L[k])) # undo each subtraction
return out                              # equals the original, up to round-off

The reconstruction is exact up to round-off because each stored residual undoes the same prediction used in analysis. The prediction itself can be approximate. Quantizing or clipping residuals, changing the expansion filter, or changing its boundary rule breaks this identity. Store signed floating-point coefficients while editing.

This is the encoder–decoder framing, and it is the right way to hold the whole construction in your head. Building the Laplacian pyramid is the encoder (or analysis): it takes the image apart into scale bands. Reconstructing is the decoder (or synthesis): it puts them back. The two are exact inverses, which is precisely what licenses the central move of this chapter: edit the bands in the middle. Because each $L_k$ isolates a range of detail scales, you can darken one, amplify another, zero a third, then run the decoder, and you get a coherent image back with no seams between scales. Blending, coring, detail enhancement, and tone mapping are all just different things to do to the bands before re-synthesizing.

Seeing it run on real pixels makes the "loses nothing" claim concrete. Start from the coarse residual, a tiny, blurry image with only the broadest tone, and add the bands back one octave at a time: the picture sharpens from broad light, to coarse structure, to fine edges and texture, until the last band hands back the original. Subtract that reconstruction from the original and the difference is flat black, exactly zero, up to floating-point round-off (Figure 6.6.4).

fig-pyramid-encode-decode
Figure 6.6.3 (reproduced). The Laplacian pyramid as an exact encoder → decoder. Left, the encoder (analysis): the image is reduced into a Gaussian pyramid and successive levels are differenced into the band-pass Laplacian levels $L_0 \dots L_{n-1}$ plus the residual $G_n$. Right, the decoder (synthesis): starting from the residual, each level is expanded and the matching Laplacian band added back, $G_k = L_k + \text{expand}(G_{k+1})$, climbing coarse-to-fine until the original image is recovered exactly. Editing the bands between the two halves is what enables multi-scale image manipulation.
fig-pyramid-reconstruction
Figure 6.6.4 (reproduced). Reconstruction on a real photograph: collapsing the Laplacian pyramid back to the exact image. The synthesis runs from left to right, starting at the coarse residual $G_{n}$ (a tiny, blurry image) and at each step expanding the running reconstruction and adding the matching band-pass level, $G_k = L_k + \text{expand}(G_{k+1})$. The picture sharpens one octave at a time, broad tone, then coarse structure, then fine edges and texture, until the last band $L_0$ returns $\hat{G}_0$, identical to the original. The final panel is the per-pixel error $|\hat{G}_0 - G_0|$: flat black, with a maximum of ~$10^{-16}$, i.e. zero up to float round-off: the synthesis adds back exactly what analysis subtracted.

Each level is a frequency band⧉

optional

Each Laplacian level responds most strongly to a range of spatial frequencies, roughly an octave apart from the adjacent level. Draw these as overlapping bands, not disjoint rings. Downsampling also makes the response depend on sampling phase. Exact reconstruction follows from the residual equation, not from a perfect partition of the Fourier plane.

But, and this is the entire point, within each band the information is still laid out spatially. The Laplacian level is an image: it tells you not only which frequencies are present but roughly where in the picture they live. That is the local-in-both property we have been chasing. The cost is that the frequency bands are crude (a handful of octave-wide rings rather than Fourier's per-frequency precision), and the price of spatial locality is some smearing of frequency, exactly as the uncertainty principle demands. A Laplacian pyramid is a deliberately coarse carving of frequency into bands, with the position within each band left spatial: a sensible middle of the road between the primal grid and Fourier.

fig-pyramid-frequency-bands
Figure 6.6.5 (reproduced). Each pyramid level is a band of spatial frequencies. The Fourier plane (frequency rising outward from the center) is covered by concentric bands, drawn here as rings: the central disk is the coarse Gaussian residual $G_n$, and each surrounding annulus is where one Laplacian level $L_k$ responds most, roughly an octave wide, from coarse (inner) to fine (outer). The real bands overlap rather than tiling the plane exactly, yet summing the levels still reconstructs the image, because the pyramid's construction guarantees it. Unlike Fourier, the content within each band is still encoded spatially: the pyramid is local in both space and frequency, a tradeoff the uncertainty principle makes unavoidable.

What the bands look like on a real image⧉

optional

On natural photographs, Laplacian coefficients usually have a strong concentration near zero and a long tail of larger responses at edges and texture. Near zero does not mean exactly zero, and edges commonly produce responses at several scales. The transform reduces some pixel correlations but does not make coefficients independent. Smooth local ramps give small responses away from boundaries when the filters reproduce constants and linear trends.

Thresholding exploits this concentration, but small coefficients include weak real texture and large coefficients can include noise. For white pixel noise of variance $\sigma^2$, a coefficient formed with effective weights $h_i$ has noise variance $\sigma^2\sum_i h_i^2$. Different levels therefore need different noise scales, and their noise is generally correlated. Chapter 2.8, Noise, signal-to-noise ratio and dynamic range describes the sensor model; the denoising chapters develop coefficient shrinkage.

Inspect a smooth sky and a textured roof in one Laplacian level. Many sky coefficients lie close to zero, while roof edges produce larger positive and negative values. Quantization can spend few bits on the small values; a denoiser can reduce them when they are more likely to be noise. But a weak real texture also produces small coefficients, and noise can produce large ones. The sparse histogram motivates both operations without identifying signal and noise perfectly. Looking across neighboring locations and scales provides evidence that the coefficient magnitude alone lacks.

Cousins: wavelets and steerable pyramids⧉

optional

The Laplacian pyramid was the first of a family, and its siblings each fix one of those limitations.

A critically sampled wavelet transform can keep one coefficient per input sample. The simplest example, Haar, replaces a pair $(a,b)$ by its normalized average and difference:

$$c=(a+b)/\sqrt2,\qquad d=(a-b)/\sqrt2;\qquad a=(c+d)/\sqrt2,\quad b=(c-d)/\sqrt2.$$

Applying this along rows and columns produces a low-pass band and three detail bands; recursively transform the low-pass band. Orthogonal wavelets preserve energy. Biorthogonal wavelets use different analysis and synthesis filters and can also reconstruct exactly; JPEG 2000 uses this family. Undecimated wavelets deliberately retain redundancy to improve translation behavior. “Wavelet” therefore does not by itself mean a nonredundant orthogonal basis.

Steerable pyramids (Simoncelli and Freeman, 1995) go the other way and add back what the Laplacian pyramid lacks: a notion of orientation. They split each frequency band further into a few oriented sub-bands (horizontal, vertical, diagonal) so the representation captures not just the scale of a feature but its direction, and does so in a way that is translation- and rotation-equivariant in the ideal construction: responses move with a translated image and can be steered to new orientations. The price is even more overcompleteness. They are the tool of choice when orientation matters: texture analysis, and the phase-based video magnification we will meet later. (There is also multigrid, a coarse-to-fine relative from numerical analysis used to solve large linear systems fast, which we mention only in passing.)

fig-steerable-pyramid
Figure 6.6.6 (reproduced). The steerable-pyramid decomposition. An image is split by scale (as in a Laplacian pyramid) and, within each scale, by orientation, a few directional band-pass sub-bands (horizontal, vertical, the diagonals) per level, so a feature is localized in space, in frequency, and in direction. The oriented sub-bands respond to edges and texture of their own orientation while staying smoothly shift- and rotation-invariant, which is exactly what the later phase-based video magnification and the BLS-GSM denoiser build on. After Simoncelli & Freeman 1995 and Simoncelli & Adelson 1996.

Choose a Laplacian pyramid for simple multiscale editing, critically sampled wavelets when coefficient count matters, and an oriented representation when the application needs scale and direction. The redundancy, filters, and sampling scheme determine their behavior under translation.

Pyramid blending⧉

in the book↗

We have built the representation; the rest of the book spends it, and the original application, still the iconic one, is multiscale blending, the Earth and Jupiter we opened with (our pedagogical stand-in for Burt and Adelson's own motivating result, the apple-and-orange "orapple" of Figure 6.6.9). The recipe: build a Laplacian pyramid of each source image and a Gaussian pyramid of the mask that says where to switch from one to the other; then, level by level, mix the two source bands using the mask at that scale,

$$ \text{out}_k = (1 - \text{mask}_k)\, L_k^{(1)} + \text{mask}_k\, L_k^{(2)}, $$

blend the coarsest Gaussian residuals with the coarsest mask as well, and finally run the decoder on the blended pyramid (Figure 6.6.7). The key detail is that the mask gets its own Gaussian pyramid, not a Laplacian one: $\text{mask}_k$ is the mask blurred and shrunk to level $k$, so it is broad and soft at the coarse levels and crisp at the fine ones. The transition is therefore wide for the low frequencies and narrow for the high ones: a gentle cross-fade of the broad colors, a crisp switch of the fine texture. That is exactly the "blend smoothly where smooth, sharply where detailed" we wanted and could not get from a single blur. The full treatment is in compositing and panorama chapters.

fig-pyramid-blending
Figure 6.6.7 (reproduced). Pyramid blending, step by step: Earth and Jupiter. The left half of Earth is to be joined to the right half of Jupiter. Naive (hard mask): switching abruptly down the middle leaves an obvious seam where every frequency changes at once. Pyramid blend: each source is decomposed into a Laplacian pyramid and the left/right mask into a Gaussian pyramid (so its transition is broad at coarse scales, narrow at fine ones); at each level the two source bands are combined under that level's mask, $\text{out}_k = (1-\text{mask}_k)\,L_k^{(1)} + \text{mask}_k\,L_k^{(2)}$, and the blended pyramid is run through the decoder. The broad colors cross-fade gently while fine detail switches crisply, giving a seamless join no single-scale blur can produce. The implementation reduces with a binomial filter, expands bilinearly and works on encoded RGB.

Better still, drive the whole construction and watch every pyramid (Figure 6.6.8).

fig-pyramid-blend-steps
Figure 6.6.8 (reproduced). Interactive: pyramid blending, every step. The full Burt–Adelson construction laid out (image A's Laplacian pyramid, image B's, the mask's Gaussian pyramid (white = take B), and the blended Laplacian, each level mixed under that level's mask, $\text{out}_k=(1-\text{mask}_k)L_k^{A}+\text{mask}_k L_k^{B}$), beside the collapsed result and a naive hard cut for comparison. Paint the mask freely, choose a preset (vertical, circle, diagonal), swap the images, change the pyramid depth, or upload your own pair. Watch the seam vanish in the collapsed result while it stays sharp in the hard cut, because every frequency band crosses over at its own width.
fig-multiresolution-spline-blend
Figure 6.6.9 (reproduced). The original multiresolution-spline blend, from Burt and Adelson. Their now-iconic example splices the left half of an apple to the right half of an orange: a hard cut leaves a visible seam, a single broad cross-fade leaves a ghosted double image, but blending each frequency band with a transition whose width matches that band's scale, wide for the coarse colors, narrow for the fine texture, fuses the two into one impossible fruit with no seam and no ghosting. Notice that this is exactly the Earth-and-Jupiter recipe above, shown here on the picture that introduced it: the band-by-band blend under a Gaussian-pyramid mask is Burt and Adelson's own construction, and our from-scratch version reproduces their method. This is their published result (Burt & Adelson 1983).
fig-multiresolution-spline-oddshape
Figure 6.6.10 (reproduced). Multiresolution blending over an odd-shaped region, from Burt and Adelson. Where the apple/orange splice used a straight vertical seam, here the boundary that selects one image over the other is an irregular, curved region, and the same scale-matched blend still hides it, because each band's transition simply follows the mask blurred to that band's scale. The method is indifferent to the shape of the join: nothing in the construction assumes a straight seam, so an arbitrary mask is blended just as seamlessly as a half-and-half cut. This is the original result accompanying our from-scratch reproduction (Burt & Adelson 1983).

Because this blend runs over the values band by band, it keeps each source's own brightness (its DC) and merely feathers the two across the mask. That is exactly what sets it apart from the gradient-domain Poisson blend, which discards the source's level and re-derives it from the boundary; the two are placed side by side, including the revealing case of pasting a constant, in Chapter 10.8, Poisson image editing.

Coarse-to-fine methods⧉

optional

Coarse-to-fine motion estimation reduces large displacements before refinement, though a coarse level can lose small objects. Scale-space detectors search across blur levels; a basic octave pyramid needs additional within-octave scales for fine scale selection. U-Nets also combine coarse context with fine spatial features, but their learned encoder and decoder are not guaranteed inverses. Increasing channel counts also changes the $4/3$ storage calculation.


Local Laplacian filters⧉

in the book↗

Enhancing rock texture should not put a bright rim around a mountain silhouette. Local Laplacian filters control detail and large contrast through a pointwise remapping used to construct each output pyramid coefficient Paris et al. 2011.

The goal is simple. At every pixel and every scale, an image carries some amount of local contrast, how far this pixel departs from its blurred surroundings. Some of that contrast is detail (the rock grain, the pine needles): small departures we want to amplify. Some of it is an edge (the mountain against the sky): a large departure we want to leave exactly alone. Edge-aware detail manipulation is, at heart, nothing but the wish to grab the small departures and lift them while the large ones pass through untouched. The trouble has always been telling the two apart cleanly enough that the boundary between them does not itself become an artifact.

This chapter is one very clean answer, due to Sylvain Paris, Samuel Hasinoff and Jan Kautz (2011). It does not build a base layer and does not weigh any pair of pixels. Instead it processes a Laplacian pyramid (the multiscale decomposition of Chapter 6.6, Pyramids and wavelets) by reshaping each coefficient with a smooth point curve that is recomputed, per output pixel, to know whether that pixel sits on detail or on an edge. The pyramid uses ordinary blurring, but the remapping used to obtain each coefficient gives explicit control over small and large intensity differences. This substantially reduces the halos of naive coefficient manipulation. The same family of curves supports detail enhancement, tone mapping and inverse tone mapping; a sampled approximation makes the construction practical and connects it to the unnormalized bilateral filter Tomasi & Manduchi 1998.

The wish, and why the bilateral leaves a halo⧉

optional

Recall the two-scale story of Chapter 10.1, Bilateral filtering and Chapter 18.2, Global tone mapping. To manipulate detail or compress a high-dynamic-range (HDR) scene, the classic move is to split the image into a base (a piecewise-smooth, edge-respecting version that holds the large-scale tones) and a detail layer (everything the base threw away). You then squash the base to fit the display and add the detail back, often boosted. The base is built with an edge-preserving smoother (a bilateral filter, say) precisely so that the strong edges land in the base and do not get manipulated as if they were texture.

It works beautifully right up until the base is imperfect at the edge, and that is where halos come from. If the base layer rounds a sharp silhouette even a little (underestimating the bright side and overestimating the dark side) that error lands in the detail layer as a contrast-shaped bump straddling the edge. Boost the detail and you boost the bump: a glowing rim on one side, a dark trench on the other. Worse, push hard enough and a gradient can reverse: the detail layer's overshoot dominates and the slope across the edge flips, so a bright-to-dark edge reads locally as dark-to-bright. Halos and gradient reversals are the two failure modes that motivated the bilateral in the first place, and the bilateral merely reduces them; it does not abolish them, because the single base layer still has to commit, once, to one smoothed value at each pixel of the edge.

Local Laplacian filtering changes how the coefficients are constructed. The decision about which intensity differences to modify is made for each coefficient through a remapping curve, rather than through one base/detail split. This provides more control over the interaction between detail and strong edges (Figure 10.4.1).

fig-base-detail-halo
Figure 10.4.1 (reproduced). Why a base/detail split can halo, and the local-Laplacian alternative. Top row (1-D scan across a strong edge): the input step with fine ripple on it; the edge-preserving base that slightly rounds the step; the detail = input − base, in which the base's rounding error appears as a contrast-shaped bump straddling the edge; and detail boosted and added back, where that bump becomes a bright overshoot and a dark undershoot (a halo) and, pushed harder, a gradient reversal. Bottom row: the same scan filtered by local Laplacian: the ripple is amplified everywhere but the step itself rides the identity part of the remapping and is reproduced exactly, so no overshoot is ever created.

What a Laplacian pyramid hands you⧉

optional

Local Laplacian filtering is built directly on the Laplacian pyramid Burt & Adelson 1983 (Laplacian pyramid) of Chapter 6.6, Pyramids and wavelets, so recall exactly what that decomposition gives. Blur the image and subtract the blur from the original: what remains is the finest band, the contrast the blur removed, namely the texture and edges at the smallest scale. Now downsample the blurred image and repeat: each level $\ell$ holds the contrast at one scale, and the bottom of the pyramid holds the leftover low-frequency residual. Collapsing the pyramid (upsampling and adding the bands back) reconstructs the image exactly.

A Laplacian-pyramid coefficient $\ell_\ell(p)$ at level $\ell$ and pixel $p$ is the local contrast at that scale and place, how far $p$ departs from its blurred surroundings at that scale. Its magnitude is the natural measure of "detail versus edge": small coefficients are fine modulation we may want to lift; large coefficients are strong structure we want to preserve. So the wish from the opening (amplify small departures, leave large ones alone) translates cleanly into the pyramid: amplify small-magnitude coefficients, pass large-magnitude ones through.

The difficulty is that a coefficient arrives unlabeled. A coefficient of a given magnitude over a smooth region might be the fine texture we want to boost; a coefficient of the same magnitude sitting on the flank of a strong edge is part of that edge and must not be touched. The naive remedy ("amplify coefficients below some magnitude threshold and not above") is exactly the base/detail thresholding that halos: it makes a hard, per-coefficient cut with no regard for the pixel the coefficient belongs to, and the discontinuity at the threshold becomes the artifact. We need a decision that depends on the value of the pixel the coefficient is reporting on, and that is the move the next section makes.

The mechanism: a remapping recomputed per output pixel⧉

in the book↗

For output coefficient $(\ell,p)$, use the reference value $g=G_\ell[I](p)$ from the input Gaussian pyramid at the same level and location. Remap the full-resolution input about $g$, construct its Laplacian pyramid, and take coefficient $(\ell,p)$. Repeat for the output coefficients and reconstruct using the matching pyramid expansion. Using the full-resolution value $I(p)$ at every level would be a different algorithm.

That sounds extravagant, and naively it is (we will address the cost at the end). But look at why it does the right thing. The curve $r_g$ is centered on $g$ and reshapes intensities by how far they sit from $g$:

$$ r_g(i) \;=\; \begin{cases} g + \operatorname{sign}(i-g)\,\sigma\,\bigl(|i-g|/\sigma\bigr)^{\alpha} & |i-g|\le \sigma \quad(\textbf{detail}),\\[4pt] g+\operatorname{sign}(i-g)[\sigma+\beta(|i-g|-\sigma)] & |i-g|>\sigma \quad(\textbf{edge}). \end{cases} $$

For departures below $\sigma$, $\alpha<1$ enhances small differences and $\alpha>1$ suppresses them. For larger departures, $\beta$ controls the slope: $\beta=1$ retains them, $0<\beta<1$ compresses them, and $\beta>1$ expands them. Both branches meet at the threshold. Values very close to the reference need care when $\alpha<1$, because the power curve has a steep derivative and can amplify noise.

The remapping distinguishes departures relative to the local Gaussian reference. It can reduce the halos of a single blurred-base decomposition, but the argument is not that every coarse reference equals one side of an edge. Inspect the assembled multiscale result, especially at extreme parameters.

fig-local-laplacian-params
Figure 10.4.2 (reproduced). The two parameters of the remapping curve, from Paris, Hasinoff and Kautz. The amplitude threshold $\sigma$ sets the boundary between detail (departures from $g$ smaller than $\sigma$, which the bent center of the curve reshapes) and edge (larger departures, which ride the identity tails untouched); the exponent $\alpha$ sets the slope of that center, with $\alpha<1$ amplifying detail and $\alpha>1$ compressing it. Sweeping the two and watching the output makes the dials concrete: $\sigma$ chooses how large a contrast still counts as texture, and $\alpha$ chooses how hard to push it: two knobs that, between them, span enhancement, tone mapping, and everything between. From Paris et al. 2011.
fig-local-laplacian-remap-family
Figure 10.4.3 (reproduced). The family of point-wise remapping functions local Laplacian filtering applies around each pixel's value: the detail exponent $\alpha$ reshapes the bent center (amplifying or compressing texture) while the tone slope $\beta$ sets the pitch of the identity tails (compressing or expanding large-scale contrast): one parameterized curve that spans detail enhancement through tone mapping Paris et al. 2011.
fig-local-laplacian
Figure 10.4.4 (reproduced). Local Laplacian filtering on a real high-dynamic-range scene (a backlit sunset), implemented after Paris et al. 2011. Top row, three ways to fit the scene's range to a display: a naive global curve blows out the sky and crushes the shadows; a Gaussian base/detail split compresses the range but leaves a bright halo ringing the high-contrast sun-and-skyline silhouette; local Laplacian compresses the same range and keeps the foreground crisp with no halo. Bottom left, the remapping curve $r_g(\cdot)$ centered on a pixel's value $g$ with a compressive center ($\alpha>1$): intensities within $\sigma$ of $g$ are gently compressed (the detail band) while intensities farther than $\sigma$ lie on the identity tails (a strong edge) and pass through unchanged. Bottom right, zoom crops along the silhouette: the Gaussian base shows a gray halo around the sun and skyline; the local-Laplacian result has none, because the strong edge rides the identity tails and is reproduced verbatim. The same machinery, with an expansive center ($\alpha<1$), does halo-free detail enhancement.
fig-local-laplacian-teaser
Figure 10.4.5 (reproduced). The original local-Laplacian teaser, from Paris, Hasinoff and Kautz. A single photograph is pushed hard in two opposite directions by the same machine: strong detail enhancement that lifts every fine texture, and aggressive tone manipulation that compresses or inverts the large-scale contrast, both completely free of the halos and gradient reversals that such heavy edits usually produce. This is the published result our from-scratch figure reproduces; seeing the authors' own example makes the claim concrete: one per-pixel remapping of a Laplacian pyramid spans the whole range of edge-aware contrast edits. From Paris et al. 2011.

The computational expense follows directly from selecting one coefficient at a time. For the requested level and position, use the corresponding value in the original Gaussian pyramid as the remapping reference. Remap the input around that reference, construct the needed Laplacian coefficient, and copy it into the output pyramid. A different level or position generally selects a different reference and therefore a different remapping. The conceptual algorithm recomputes far more than the one coefficient it keeps, which motivates the later approximation using a finite set of reference intensities. This also explains why taking one globally remapped image and building its pyramid is a different operation.

One curve, three edits: enhancement, tone mapping, inverse tone mapping⧉

in the book↗

Because the entire design lives in the shape of $r_g$, three different photographic operations are three settings of the same method, a clean instance of big lesson L10.4, that the eye reads local contrast and not absolute level, so the right place to edit is the multiscale contrast itself.

fig-local-laplacian-detail-space
Figure 10.4.6 (reproduced). Detail enhancement across scale, from Paris, Hasinoff and Kautz. Because the curve acts on a Laplacian pyramid level by level, the same machine can boost detail at a chosen scale (fine texture, medium structure, or both) by enhancing the corresponding bands while leaving the others alone. Working in the multiscale decomposition gives you a scale selector for free: detail enhancement becomes a per-band choice rather than one global slider, all of it halo-free because every band's strong edges still ride the identity tails. From Paris et al. 2011.
fig-local-laplacian-range-compression
Figure 10.4.7 (reproduced). Halo-free range compression, from Paris, Hasinoff and Kautz. A high-dynamic-range scene is squeezed to fit a display by compressing the large-scale contrast ($\alpha>1$) while the fine detail is preserved, so the interior and the bright window, or the shadowed foreground and the blazing sky, are all legible in one frame, with no glow ringing the high-contrast silhouettes. Compare it mentally to the haloed Gaussian-base result earlier: the difference is the identity tails, which reproduce every strong edge verbatim and so leave nothing for a halo to form on. This is the authors' tone-mapping result (Paris et al. 2011).

These settings change different ranges of contrast. They do not guarantee artifact-free output or recover radiance lost to clipping. Noise, strong parameter settings and finite intensity sampling remain practical limitations.

fig-local-laplacian-demo
Figure 10.4.8 (reproduced). One editable curve, three edits, live. The curve $T$ reshapes each pixel's detail $d=(\text{value}-\text{local reference})$ before the Laplacian pyramid is rebuilt and collapsed, using the sampled version of the local Laplacian filter: seven reference values stand in for a reference at every intensity, and the original coarse residual is kept. Drag the dots: steepen the curve's center and fine detail is boosted (the "clarity" edit); flatten its tails and strong edges are compressed; push the tails past the diagonal and contrast is expanded; leave every dot on the gray diagonal and the input comes back unchanged. The presets jump between identity, detail boost, and tone compress. Push the curve hard and watch the silhouettes: large-contrast pixels ride the curve's tails, which is why halos stay small, but seven samples and an arbitrary curve can still leave artifacts, so halo-free is a tendency of the method rather than a guarantee of this demo. The curve acts on the gray code values of images that were already tone mapped from HDR radiance maps (a vine sunset, the Memorial church and Grace Cathedral's nave by Paul Debevec, the Design Center loft by Byong Mok Oh, and an Antelope Canyon capture), not on the radiance itself.
💡 Big lesson (L10.4)

The eye cares about local contrast, not absolute values, so edit the contrast directly, in the multiscale decomposition. Where gradient-domain methods (Chapter 10.8, Poisson image editing) manipulate the gradient field and re-integrate, local Laplacian filtering manipulates the Laplacian-pyramid coefficients (the local contrast at each scale) with a per-pixel point curve, then collapses the pyramid. Both discard or reshape contrast while letting the absolute level fall out, and both are kin to the bilateral base/detail split; the difference is that working band by band with an identity tail for large contrasts removes the mechanism that makes a single base layer halo: no base value is committed once for the whole edge. In practice the halos shrink to the point of being hard to find at moderate settings, though extreme parameters can still produce small artifacts near strong edges. (L10.4, registered in Chapter 10.8, Poisson image editing; this is its multiscale-decomposition appearance.)

Contrast with the bilateral base/detail split⧉

optional

This differs from the bilateral approach in one specific way, though both aim at the same target. The bilateral two-scale decomposition (Chapter 10.1, Bilateral filtering, Chapter 18.2, Global tone mapping) and local Laplacian filtering share the goal of compressing the range or boosting detail without halos, and they are formal cousins. They part on the machinery.

The bilateral route is affinity-based and once-committing: it measures how similar nearby pixels are (the range weight), averages the similar ones into a single base layer, and then manipulates the detail = input − base. Every pixel of the edge gets one smoothed base value, and any imperfection in that one commitment becomes a halo in the boosted detail.

Local Laplacian filtering constructs coefficients using remappings centered at Gaussian-pyramid values. The pyramid still uses blurring and a coarse residual; the distinction is how each coefficient is chosen, not the absence of a base or averaging at all scales.

The cost, and the fast version⧉

optional

The plain catch is cost, and reading the recipe back makes it clear: the naive filter rebuilds an entire Laplacian pyramid per output pixel and per level, which is wildly redundant. Most of each rebuilt pyramid is thrown away after one coefficient is read. Done literally, that is far too slow for a real photo.

fig-fast-local-laplacian-1
Figure 10.4.9 (reproduced). The headline result of the fast version, from Aubry, Paris, Hasinoff, Kautz and Durand. The same strong, halo-free detail and tone edits we have been building from scratch, pushed hard enough to lift every fine texture and reshape the large-scale contrast, now computed in a fraction of the time, fast enough to run on a real photograph. The speed-up costs nothing visible: this is the authors' own published output of the practical filter, and it is the same halo-free, gradient-reversal-free quality as the slow construction. From Aubry et al. 2014.

The fast version, Mathieu Aubry, Sylvain Paris, Samuel Hasinoff, Jan Kautz and Frédo Durand (2014), recovers practicality with two observations. The first is sheer efficiency: the remapping $r_g$ depends on $g$ only through a smooth dependence on the center value, so it suffices to evaluate the construction for a small handful of representative values of $g$ spanning the intensity range and interpolate between the resulting pyramids, turning a per-pixel rebuild into a few full-image pyramids plus a lookup. The second is conceptual, and it is the one this book cares about most: the single-scale special case of the local-Laplacian construction is exactly the unnormalized bilateral filter from the end of Chapter 10.1, Bilateral filtering, the delta-from-input form

$$ I^{\mathrm{bf}}_p \;=\; I_p + \eta\sum_q w(p,q)\,\bigl(I_q - I_p\bigr), $$

This connection requires matching kernels, remappings and normalization conventions; it is not an identity for every choice of local-Laplacian curve and bilateral weights. The explicit step size here follows Chapter 10.1, Bilateral filtering.

fig-bilateral-unnormalized
Figure 10.4.10 (reproduced). The single-scale special case, on a step edge. The ordinary normalized bilateral averages each pixel with its similar neighbors and divides by the weight sum. The unnormalized form in Aubry et al. adds weighted differences to the pixel instead, $I_p+\sum_q w(p,q)(I_q-I_p)$, without dividing; stacked across pyramid levels with the per-coefficient remap, that form becomes the local-Laplacian filter, which is why a method that builds no affinity is, scale by scale, an affinity filter in disguise. The plotted unnormalized curve approximates that form: it divides the weighted sum by a fixed full-window weight, which agrees in a flat interior but darkens near a truncated boundary, even for a constant input. After Aubry et al. 2014.

With the filter now fast, the authors put it through the photographic operations the slow version promised, at full image resolution. The first is the hardest test of the whole approach: range compression and detail enhancement at once, in a single pass.

fig-fast-local-laplacian-6
Figure 10.4.11 (reproduced). Range compression with detail enhancement, done together, from Aubry, Paris, Hasinoff, Kautz and Durand. A high-dynamic-range scene is squeezed to fit a display and has its fine texture lifted in the same filtering pass: the shadows and the highlights are both legible while the local detail reads crisp, with no halo on the strong silhouettes. The lesson is that the two edits we treated as opposite settings of $r_g$ (compress the large contrasts, expand the small ones) are not mutually exclusive: one curve can do both at the right scales, and the fast filter makes the combination practical. From Aubry et al. 2014.

The remaining results probe what the dials actually do once the filter is cheap enough to sweep them. The most structural dial is the depth of the pyramid, how many scales the remapping is allowed to touch.

fig-fast-local-laplacian-7
Figure 10.4.12 (reproduced). The effect of pyramid depth, from Aubry, Paris, Hasinoff, Kautz and Durand. Varying the number of levels the remapping reaches sets the coarsest scale at which local contrast is reshaped: a shallow pyramid edits only the fine bands and leaves the broad tonal structure alone, while a deeper pyramid carries the manipulation up to ever larger-scale contrast, changing the overall look from a light touch of clarity to a sweeping tonal redistribution. "Scale" is a genuine control here: depth chooses how large a structure the filter is permitted to call detail. From Aubry et al. 2014.

Because the filter acts on coefficients, it can also be driven toward a target rather than a fixed curve, iterating the remapping until a desired statistic of the result is met.

fig-fast-local-laplacian-9
Figure 10.4.13 (reproduced). Iterative gradient-histogram transfer, from Aubry, Paris, Hasinoff, Kautz and Durand. Instead of a fixed remapping, the fast filter is applied repeatedly to push the image's gradient histogram toward a target distribution: each pass reshapes the multiscale contrast and the result is re-measured, converging on an image whose statistics of local contrast match the desired ones. The point is that the per-pixel curve need not be set by hand: because it operates directly on the contrast coefficients, the filter slots into an iterative, statistics-matching loop, all of it still halo-free. From Aubry et al. 2014.
fig-fast-local-laplacian-12
Figure 10.4.14 (reproduced). Comparison with two-scale tone management, from Aubry, Paris, Hasinoff, Kautz and Durand. The fast local-Laplacian result is placed beside the two-scale tone-management approach of Bae et al. 2006 (Bae et al. 2006) on the same scene: both reshape large-scale tone while keeping detail, but the local-Laplacian result holds its strong edges without the residual halo or detail loss that a base/detail split can leave behind. Against a respected baseline, manipulating the multiscale decomposition directly, with identity tails on the strong contrasts, buys a cleaner edge than committing once to a base. From Aubry et al. 2014.
Video 1. Video: Local Laplacian Filters: Edge-Aware Image Processing with a Laplacian Pyramid, Paris, Hasinoff & Kautz 2011 (YouTube). The authors' walkthrough of reshaping each Laplacian-pyramid coefficient with a per-pixel point curve, producing detail enhancement and tone manipulation that are halo-free by construction.

In CompPhotoRoom

The Highlights and Shadows sliders of Chapter 8.13, A raw developer in the browser run a real local-Laplacian kernel, written in Halide and compiled to WebAssembly; the method menu also carries the global-curve prototype, so the halos this chapter promises from the naive approach can be produced on demand and then made to vanish.

Pyramid and wavelet denoising⧉

in the book↗

A sharp boundary between a wall and a window produces large coefficients in a few wavelet bands. In a smooth part of the wall, most detail coefficients are small. Noise adds fluctuations throughout the transform. We can therefore reduce noise by shrinking detail coefficients before reconstructing the image.

The transforms are introduced in Chapter 6.6, Pyramids and wavelets. After the first section, the derivations use an orthonormal wavelet transform and additive white Gaussian noise for the basic derivation. This assumption matters: an orthonormal transform preserves the covariance $\sigma^2 I$, and Gaussianity makes the transformed noise coefficients independent. White noise need not be Gaussian in general.

The method: shrink the bands of a pyramid⧉

in the book↗

Recall how a Laplacian pyramid is built (Chapter 6.6, Pyramids and wavelets; Burt & Adelson 1983 (Laplacian pyramid)). Blur the image and halve its resolution, repeatedly, to get the Gaussian pyramid: the same photograph at 1, 1/2, 1/4 of its size, each level smoother than the last. Each Laplacian level is the difference between one Gaussian level and the next coarser one upsampled back to its size, so it holds the detail that the blur removed, roughly one octave of spatial frequency. The last level is the small, blurred residual. Collapsing reverses the construction exactly: upsample the residual, add the next level, and repeat. Whatever values the detail levels hold, the collapse adds them back in.

That exactness is what makes the pyramid a denoising tool. In a smooth region of the photograph, a detail level is close to zero, and what it does hold is mostly noise. At an edge or in texture, it holds large values. Noise, spread over all frequencies, adds small fluctuations to every level. So the method is three steps:

Algorithm 2
levels, residual = laplacian_pyramid(y, number_of_levels)
for j, band in enumerate(levels):
    t = k * noise_std_of_band(j)          # threshold follows that band's noise level
    levels[j] = shrink(band, t)           # small values toward zero, large ones kept
x_est = collapse(levels, residual)        # residual left as it is

The shrinkage curve, often called coring in this setting, is flat at zero for small inputs, the dead zone where noise lives, and passes large inputs through (Figure 13.4.2). Edges survive because their coefficients are large relative to the noise; flat regions lose their grain because theirs are not (Figure 13.4.1). The rest of this chapter makes each step precise: which curve to use, how to set the threshold of each band, and why a better statistical model of the coefficients shrinks less at real structure.

fig-pyramid-denoise-result
Figure 13.4.1 (reproduced). Coring denoises a real image. The noisy photo (center) is split into a band-pass Laplacian pyramid; on each detail level the small coefficients are soft-shrunk toward zero and the large ones (the real edges) kept, then the pyramid is collapsed back (right). Left to right: clean reference, noisy input, coring-denoised result, with PSNRs; the fourth panel plots the coring curve actually applied to the finest band. The flat water and sky lose their grain while the masts and rigging stay sharp: edge-preserving denoising for free from the sparsity of the bands.
fig-coring
Figure 13.4.2 (reproduced). Coring: denoising by clamping small pyramid coefficients. The plot is the coring curve applied to each Laplacian coefficient, an input/output map that is flat at zero for small magnitudes (the dead zone, where noise lives) and passes large magnitudes through (the edges and texture worth keeping). Applied band by band to a Laplacian pyramid and then reconstructed, it removes noise in smooth regions while leaving strong edges intact, because on natural images the signal sits in the few large coefficients and the noise is spread across the many small ones.

A Laplacian pyramid is overcomplete (it stores about 4/3 as many values as the image) and its bands are not orthogonal, so noise in its levels is correlated and its strength differs from band to band. An orthonormal wavelet transform removes both complications, which is why the derivations below use it. The Laplacian pyramid remains the easier transform to build and to reason about, and its lack of subsampling artifacts is an advantage we return to with overcomplete transforms.

Working band by band also matches how we see. The visual system analyzes an image through channels tuned to spatial frequency and orientation, and its sensitivity to contrast depends on frequency: it peaks at intermediate frequencies and falls for very fine detail (Chapter 3.4, Spatial and temporal vision; Campbell & Robson 1968). The resemblance between band-pass channels and pyramid levels was part of the original motivation for the Laplacian pyramid. For a denoiser it means that errors in different bands are not equally visible. At ordinary viewing distances, the finest level of a high-resolution photograph often falls beyond the peak of that sensitivity, so residual fine grain is less objectionable than the blotchy, low-frequency noise of a coarser band, which a fine-band threshold leaves untouched. Color detail is seen more coarsely still (Spatial and temporal vision#Chrominance spatial vision), which is why chroma bands can be cored harder than luminance bands (Gaussian, median, and bilateral filtering#Denoise color more than brightness). Where the thresholds should be set is therefore partly a statistical question, how much noise each band carries, and partly a perceptual one, how much of what remains a viewer will see.

Sparse in the right basis⧉

optional

Many photographs have wavelet-coefficient histograms concentrated near zero with broader tails than a Gaussian. Large coefficients occur at boundaries and structured detail; numerous small coefficients describe smooth regions. This is statistical sparsity, not a claim that every small coefficient is disposable or every photograph has the same distribution (Figure 13.4.3).

The argument is a claim about a distribution, so look at the distribution. Take a photograph, take one subband of its wavelet transform, and plot the histogram of its coefficients on a logarithmic vertical axis. For most photographs it is a sharp spike at zero with long tails, close to a Laplacian or, better, a hyper-Laplacian with an exponent below one. Do the same for pure Gaussian noise of the level you expect: on the same axis it is a downward parabola, with no spike and no tails. A threshold is a cut through both populations. The fraction of the noise histogram inside the cut is noise removed; the fraction of the image histogram inside it is signal removed with it. Moving the threshold trades one against the other, and the two curves show the trade directly.

fig-wavelet-coefficient-stats
Figure 13.4.3 (reproduced). Interactive. The histogram argument, live. Choose a photograph, a transform and a subband; the panel plots the coefficient histogram on a log axis beside the histogram of the same subband for pure noise of a chosen level, and overlays the fitted Laplacian and hyper-Laplacian Krishnan & Fergus 2009. Drag a threshold line and the panel reports what fraction of each population it cuts, which is the tradeoff between noise removed and signal lost, read directly off the two curves. Interactive: choose image, transform, subband and noise level; drag the threshold and read the two cut fractions and the resulting estimate error.

Let $c_y=c+n_c$ be a measured coefficient. Under an orthonormal transform of white Gaussian noise, $n_c$ has the original noise variance $\sigma^2$. Signal and noise distributions overlap, so a coefficient cannot be classified perfectly from its magnitude. Shrinkage is an estimate under uncertainty. It will remove some real detail and retain some noise.

For a redundant pyramid, the noise variance depends on each analysis filter's energy, and coefficients can be correlated. If band $j$ uses filter $h_j$, white input noise contributes variance $\sigma_j^2=\sigma^2\sum_q h_j(q)^2$. Use these band-dependent levels or measure them by passing simulated noise through the actual transform, with the same normalization and boundaries.

Thresholding, hard and soft⧉

optional

Hard thresholding retains a coefficient above a magnitude threshold and removes it otherwise:

$$\eta_{\mathrm{hard}}(c_y;t)= \begin{cases}c_y,&|c_y|>t,\\0,&|c_y|\le t.\end{cases}$$

Soft thresholding also reduces the magnitude of each survivor:

$$\eta_{\mathrm{soft}}(c_y;t)=\operatorname{sign}(c_y)\max(|c_y|-t,0).$$

A hard threshold of 3 maps coefficients 2.9 and 3.1 to 0 and 3.1; a soft threshold maps them to 0 and 0.1. Hard thresholding avoids shrinking large coefficients but introduces a discontinuity. Soft thresholding is continuous but reduces contrast. Neither promises untouched edges (Figure 13.4.4).

fig-shrinkage-functions
Figure 13.4.4 (reproduced). Interactive. The shrinkage rules as curves, input coefficient against output coefficient, drawn together: identity, hard, soft, and the smooth coring curve. Move the threshold and watch the corners move. Below, the same image denoised with whichever curve is selected, so the shape of a scalar function and the appearance of a photograph are on screen together, and the discontinuity of the hard rule can be connected to the speckle it produces. Interactive: select the rule, drag the threshold, and compare two rules at matched noise reduction.

For $M$ independent Gaussian noise coefficients, the universal threshold $t=\sigma\sqrt{2\log M}$ is a conservative choice intended to reject large pure-noise excursions (Donoho & Johnstone 1994). Its assumptions are clearest in an orthonormal basis. Applying it independently to bands uses each band's coefficient count and noise level; this is a specified implementation choice rather than a guarantee for an arbitrary pyramid.

Algorithm 3
coeffs = orthonormal_wavelet_transform(y)
v = coeffs.finest_diagonal
sigma_est = median(abs(v - median(v))) / 0.6745
for j in detail_band_indices(coeffs):
    band = coeffs[j]
    threshold = sigma_est * sqrt(2 * log(number_of_coefficients(band)))
    coeffs[j] = soft_threshold(band, threshold)
x_est = inverse_wavelet_transform(coeffs)

The median absolute deviation estimate assumes the chosen high-frequency band is sufficiently dominated by Gaussian noise. Fine texture can inflate it; use a calibrated level when available. We leave the coarse approximation band unchanged in this simple version to avoid suppressing image brightness and broad shading. It still contains noise and can be estimated separately in more elaborate methods.

Shrinkage as a MAP estimate⧉

optional

A Laplace prior $p(c)\propto\exp(-|c|/s)$ and Gaussian coefficient noise give the maximum a posteriori estimate

$$\hat c=\arg\min_c\frac{(c-c_y)^2}{2\sigma^2}+\frac{|c|}{s}.$$

For a positive solution, differentiating gives $c=c_y-\sigma^2/s$; the negative case gives $c=c_y+\sigma^2/s$. If these would cross zero, the minimum is at zero. Together the cases give soft thresholding with $t=\sigma^2/s$. Higher noise increases shrinkage, while a broader prior permits larger coefficients.

Equivalently, soft thresholding minimizes $\tfrac12(c-c_y)^2+t|c|$, making it the proximal operator of the absolute-value penalty. Chapter 13.7, Learned denoisers uses this operation in an iterative sparse estimator and then learns its parameters. This coefficientwise closed form relies on the separable model; a redundant analysis penalty does not generally reduce to one transform-threshold-inverse pass.

Other priors produce different shrinkage curves. A hyper-Laplacian penalty $|c|^\alpha$ with $0<\alpha<1$ shrinks large coefficients less aggressively, but makes the scalar problem nonconvex. Its solution requires care about thresholds and competing minima; some particular exponents admit specialized closed forms.

This scalar calculation connects several chapters. A data term plus a prior gives the inverse-problem formulation in Chapter 7.1, Imaging as Bayesian inference with probabilistic priors. Soft thresholding is the simple proximal step that more elaborate iterative solvers can replace by a denoiser in Chapter 13.11, Denoising as a universal prior. Unrolling such an iteration produces the trainable stages discussed in Chapter 13.7, Learned denoisers. The progression starts with an estimator whose threshold we can derive, then changes either the prior or the way the estimator is computed.

Ringing, and why the transform is usually overcomplete⧉

optional

A critically sampled wavelet transform depends on the alignment of the image with its sampling grid. Shift an edge by one pixel and its coefficients change; thresholding them can then produce a different edge profile or ringing. Cycle spinning Coifman & Donoho 1995 (cycle spinning) reduces this dependence:

Algorithm 4
result = zero_image()
for shift in chosen_grid_shifts:
    moved = shift_image(y, shift)
    estimate = wavelet_shrinkage(moved)
    result += undo_shift(estimate, shift)
result /= number_of_shifts

For circular shifts, unshift the entire reconstruction before aggregation; other boundary rules require valid-region handling. Use at least one shift. An undecimated transform provides another way to avoid subsampling dependence, at a cost in storage and computation. Its synthesis and threshold conventions matter, so do not assume every redundant transform is identical to a particular cycle-spinning implementation (Figure 13.4.5).

fig-wavelet-denoise-lab
Figure 13.4.5 (reproduced). Interactive. A wavelet denoiser with its insides exposed. The image on one side, the subband pyramid on the other, with each subband's threshold adjustable independently and the surviving coefficients highlighted in place. Remove the finest scale entirely (a threshold above all its coefficients; a threshold of zero keeps every one) and watch it take texture along with the noise; raise one orientation only and watch the artifacts become directional. A shift-invariance toggle switches between the decimated transform and cycle spinning, with the ringing near a hard edge as the visible difference. Interactive: per-band thresholds, hard against soft, decimated against undecimated, and a residual view; a preset reproduces the universal threshold for comparison with hand-tuned settings.

All shifted estimates use the same noisy input. Their errors are correlated, so averaging them does not earn the $1/\sqrt N$ guarantee of independent captures. The benefit comes from reducing dependence on a particular transform grid and combining estimates with different artifacts.

For cycle spinning, shift the image, transform and denoise it, then undo the shift before combining it with the other results. Different shifts place the same edge differently relative to the wavelet grid. Their artifacts therefore need not coincide, even though the reconstructed scene should align after the shifts are undone. Averaging can reduce that grid dependence at a cost in computation. Averaging without undoing the shifts would instead blur the image, and a finite set of shifts only samples the possible grid alignments.

Coring band by band, in practice⧉

optional

Thresholds can vary by scale and orientation, and that is where the operator makes different decisions about different structures. Fine-scale coefficients carry sensor noise and small texture; coarser coefficients describe broader transitions. Raising only the fine-scale threshold can reduce grain without flattening broad contrast, while raising every threshold produces the smooth, plastic rendering that gives aggressive denoising its reputation. Spatially varying thresholds add a further control where noise or motion confidence changes across the frame. The band noise levels themselves depend on the analysis filters, their normalization and any correlation already in the input, so the finest band does not universally hold almost all of the noise.

fig-pyramid-denoise-demo
Figure 13.4.6 (reproduced). Coring with a per-band knob, live. Choose an image and an input noise level, then set one soft threshold per detail band, t0 on the finest band down to t3 on the coarsest; the coarse residual is left alone. The noise is Gaussian, added to the encoded RGB values with a fixed seed and clipped to [0,1], so it stays put while you tune, and noise and thresholds are both measured in 8-bit code values. A soft threshold does two things: it zeros small coefficients, and it shrinks every larger one by the same amount, real edges and texture included. So no threshold is free. With all four at zero you get the noisy input back; raise one and watch the PSNR against the clean original, which can rise as noise goes or fall as detail goes with it, depending on the image and the band. The finest bands usually hold the most noise relative to structure and so usually tolerate the highest thresholds, but that is a tendency you can test here, not a rule.
In CompPhotoRoom

The noise-reduction half of the Detail panel in Chapter 8.13, A raw developer in the browser is the coefficient-shrinkage of this chapter, applied to a blur residual, with chroma blurred more aggressively than luma.

Coring and the Gaussian scale mixture⧉

optional

Bayesian coring estimates a coefficient using a fitted distribution rather than selecting a threshold only by convention (Simoncelli & Adelson 1996). A conditional-mean estimator generally produces a smooth shrinkage curve. It differs from the MAP estimator, which selects a posterior mode.

Coefficients also provide context for one another: an edge often produces large magnitudes at nearby positions and scales. The dependence is in the magnitudes, not the values. Neighboring coefficients of a photograph are close to uncorrelated, since their signs flip as often as not, yet their magnitudes are strongly correlated: where one is large, its neighbors tend to be large too Simoncelli & Olshausen 2001. A model that treats coefficients as independent misses exactly that. A Gaussian scale mixture models a neighborhood vector as $c=\sqrt z\,u$, where $u$ is Gaussian and $z$ is an independent positive multiplier. The multiplier represents local activity. BLS-GSM, Bayesian least squares with a Gaussian scale mixture, averages the conditional estimates over uncertainty in that multiplier (Portilla et al. 2003 (BLS-GSM)). A coefficient supported by neighboring activity can then be shrunk less than an isolated coefficient of the same magnitude.

The transform matters as well. A separable wavelet has only horizontal, vertical and a mixed diagonal band, so an edge at an intermediate angle spreads its energy over several bands and several coefficients, each of which is small enough to be shrunk. Oriented transforms such as the steerable pyramid Simoncelli & Freeman 1995 or curvelets Candès & Donoho 2004 (curvelets) have more orientations, so a straight edge concentrates into fewer, larger coefficients that survive shrinkage. They are overcomplete, which costs memory and time, and they help most on images dominated by long edges.

This extends scalar shrinkage to a local statistical model in an oriented pyramid. It still depends on the transform, the assumed noise covariance, and the fitted image statistics; complex or unfamiliar texture can violate those assumptions.

Consider two wavelet coefficients of the same magnitude. One lies among many large coefficients along an edge; the other is isolated in an otherwise quiet neighborhood. A fixed threshold treats them alike. A model that estimates local signal variance can interpret the first as part of real structure and shrink it less, while shrinking the isolated coefficient more. A Gaussian scale mixture expresses this by allowing a shared local scale to modulate a group of coefficients. Estimating that scale uses context across nearby positions, orientations, or levels. The benefit comes from the joint model, not from assuming that every small coefficient is noise or every large coefficient is signal Portilla et al. 2003 (BLS-GSM).

Exposure fusion⧉

in the book↗

For a well-aligned bracket, exposure fusion can produce a finished picture without first fitting a camera response or estimating radiance.

Exposure fusion deserves more attention than its place among the local operators suggests, because it is the one that ships. Fusing a bracket directly, with weights for contrast, saturation and good exposure blended through a Laplacian pyramid, skips the radiance map, the calibration of the camera response and the tone mapping altogether. For the consumer case, the standard factorization of capture, assemble a radiance map, then tone-map it, was the wrong one, and the field spent a decade on a problem that could be sidestepped. Phone pipelines kept the idea: HDR+ renders its merged burst by fusing synthetic exposures made from it (Chapter 18.5, Local Laplacian filtering and other multiscale methods, Chapter 17.6, HDR+ and burst imaging on phones).

Mertens and colleagues weight rendered frames using local contrast, channel variation and proximity to midrange values, then blend them through pyramids (Mertens et al. (exposure fusion)). The frames need a consistent color encoding and scaling across the stack. The method avoids explicit radiometric calibration; it is not invariant to arbitrary encoding changes.

No radiometric calibration is performed and no HDR radiance map is built: the bracket goes in and a rendered picture comes out. Fusion can also combine differently rendered versions of one radiance estimate, which is a rendering step rather than the raw align-and-merge of Chapter 17.3, Merging exposures.

fig-exposure-fusion-1
Figure 18.4.1 (reproduced). Exposure fusion, from the original paper. A bracket of differently-exposed frames and the single fused result, alongside the per-frame quality weights (well-exposedness, contrast, saturation) that steer the multiscale blend: no HDR radiance map is ever built. Reproduced from Mertens, Kautz & Van Reeth (2007) with permission.

Blending without seams⧉

in the book↗

Abrupt changes in a weight map can create seams in a direct weighted average. Smooth multiscale blending reduces these transitions, although mismatched geometry, brightness and motion can still remain visible.

We build Laplacian pyramids of the images and Gaussian pyramids of the normalized weights, blend corresponding levels and reconstruct. Use consistent boundaries and pyramid sizes. Fine bands transition over smaller neighborhoods than coarse bands.

This is the pyramid blend of Chapter 6.6, Pyramids and wavelets with the hand-drawn mask replaced by an automatic quality weight.

fig-exposure-fusion-3
Figure 18.4.2 (reproduced). Exposure fusion drawn as a pyramid blend: the pyramid construction of Chapter 6.6, Pyramids and wavelets, with the mask replaced by an automatic quality weight. Each input exposure becomes a Laplacian pyramid and each per-pixel weight map a Gaussian pyramid; the two are multiplied and summed level by level into a fused pyramid that collapses to the final image. After Mertens et al. (exposure fusion).
Algorithm 5
# exposure fusion, the whole method
W = [contrast(I)**a * saturation(I)**b * wellexposed(I)**c for I in stack]
W = [w + epsilon for w in W]  # positive floor avoids a zero normalizer
W = normalize_across_stack(W)
Lp = [laplacian_pyramid(I) for I in stack]
Gp = [gaussian_pyramid(w) for w in W]
out = collapse([ sum(Gp[i][l] * Lp[i][l] for i in range(len(stack))) for l in levels ])

That is the entire algorithm, and it is about thirty lines in practice.

fig-exposure-fusion-weights
Figure 18.4.3 (reproduced). Interactive. One bracket (three real ones from the HDR problem set, Boston, a vine at sunset and Antelope Canyon, or a synthetic room), with each frame's three quality measures shown as images and their product as the weight map, then the naive per-pixel blend beside the pyramid blend. The naive result has visible seams and haloes at every edge where the winning frame changes; the pyramid result does not, and a level slider shows why, by blending only the coarse levels or only the fine ones. A comparison view puts the fusion beside a merge-and-tone-map result from the same bracket, which is usually close enough that the reader has to look for the difference. Interactive: adjust the three exponents, toggle the pyramid blend, set the number of levels, and compare against the radiance-map route.

Why it survives⧉

in the book↗

Exposure fusion is a useful baseline when the goal is a rendered photograph. It should be compared with a calibrated merge under the intended appearance and output conditions rather than assumed equivalent.

What it gives up is worth being clear about.

There is no radiance map, so the output is a picture and not a measurement. Everything the calibrated route buys outside photography, image-based lighting, photometry, physical simulation, is unavailable, which is the subject of Chapter 17.2, Camera response and radiance calibration.

The rendering depends on the bracket, weights and pyramid construction. The output can be edited afterward, but that does not recover the radiance or exposure information discarded by fusion. The source bracket is worth keeping for later reinterpretation.

The weights encode a preference, not a physical confidence estimate. The result can still be wrong: ghosts, halos, unstable colors and missing texture are measurable failures.

Motion still ghosts. Nothing about fusion helps with a moving subject, so the rejection machinery of Chapter 17.4, Ghosts and motion is needed just the same.

Fusion needs the same attention to registration, validity and changing content as other multi-frame methods.

Local Laplacian filtering and other multiscale methods⧉

Local Laplacian filters⧉

optional

The local Laplacian filter of Paris, Hasinoff and Kautz avoids the problem of consistency between bands by construction Paris et al. 2011. It never multiplies a coefficient by a gain. For each coefficient of the output's Laplacian pyramid, at level $\ell$ and position $p$, it takes the value $g$ of the input's Gaussian pyramid at the same place, remaps the whole input with a pointwise curve $r_g$ centered on $g$, and copies the corresponding coefficient of the remapped image's Laplacian pyramid. The curve treats departures from $g$ smaller than a threshold $\sigma$ as detail and larger ones as edges, with separate slopes for each (Chapter 10.4, Local Laplacian filters).

For tone mapping, the filter runs on log luminance with the edge slope $\beta$ below one, which compresses large departures from the local reference, the steps between a window and a wall, while the detail slope keeps or enhances small ones. Because each coefficient comes from a remapping of the actual image around a reference value, rather than from a gain applied to a band, the result has no halos at the edges a blurred base would cross. Its compression is limited by the same construction: at the usual settings, with the detail exponent at one and the threshold around 1.3 stops, it does not bring the church interior below four or five stops in the comparison figure, and a global curve usually finishes the job. The price was cost: the direct algorithm builds a pyramid per coefficient. Aubry and colleagues showed that remapping around a small set of reference values and interpolating gives the same result to good accuracy, at the cost of a few dozen pyramids, fast enough for interactive editing Aubry et al. 2014, and its implementation is a standard example of a schedule for image-processing pipelines (Part 29, Making computational photography code fast).

fig-local-laplacian-demo
Figure 10.4.8 (reproduced). One editable curve, three edits, live. The curve $T$ reshapes each pixel's detail $d=(\text{value}-\text{local reference})$ before the Laplacian pyramid is rebuilt and collapsed, using the sampled version of the local Laplacian filter: seven reference values stand in for a reference at every intensity, and the original coarse residual is kept. Drag the dots: steepen the curve's center and fine detail is boosted (the "clarity" edit); flatten its tails and strong edges are compressed; push the tails past the diagonal and contrast is expanded; leave every dot on the gray diagonal and the input comes back unchanged. The presets jump between identity, detail boost, and tone compress. Push the curve hard and watch the silhouettes: large-contrast pixels ride the curve's tails, which is why halos stay small, but seven samples and an arbitrary curve can still leave artifacts, so halo-free is a tendency of the method rather than a guarantee of this demo. The curve acts on the gray code values of images that were already tone mapped from HDR radiance maps (a vine sunset, the Memorial church and Grace Cathedral's nave by Paul Debevec, the Design Center loft by Byong Mok Oh, and an Antelope Canyon capture), not on the radiance itself.
Video 2. Video: Local Laplacian Filters: Edge-Aware Image Processing with a Laplacian Pyramid. Sylvain Paris, Samuel W. Hasinoff and Jan Kautz, 2011 (YouTube).

Pyramids in exposure fusion and phones⧉

optional

The same pyramid machinery underlies exposure fusion, which blends a bracket with weights that are themselves blended across the levels of a pyramid so that the transitions are invisible (Chapter 18.4, Exposure fusion). The two methods meet in phones. HDR+ merges a burst of short exposures into one image with more range than the display, then renders it by synthesizing a short and a long exposure from the merged image and fusing them with a variant of exposure fusion Hasinoff et al. 2016 (Chapter 17.6, HDR+ and burst imaging on phones). A pyramid blend of synthetic exposures is a multiscale local tone mapper, and an efficient one.

Figure 18.5.1 puts the two gain-control methods of this chapter and the local Laplacian filter side by side on one radiance map, each set to the same overall compression.

fig-multiscale-tonemap-compare
Figure 18.5.1 (reproduced). One radiance map tone mapped three ways, on log luminance at 240 pixels wide: a gain on each band of a Laplacian pyramid computed from that band alone, the subband companding of Li, Sharan and Adelson (one gain map from the activity of all bands together, on an oversampled pyramid), and the local Laplacian filter, which keeps detail and compresses edges by the slope $\beta$. Each method's own parameter ($\gamma$, $\gamma$, $\beta$) is set by bisection so that its output spans the same range between the 1st and 99th percentiles, the value of the output-range slider. The magnified views and the scanline start on a strong edge; drag on an image to move them, or on a magnified view to move the scanline. By default the plot shows each output minus the input compressed globally to the same range, so a halo reads as a broad bump beside an edge and ringing as an oscillation; switch it to "outputs" for the profiles themselves. The smoothing slider sets the width of the Gaussian that turns band magnitudes into gains, pointwise at 0, and does not touch the local Laplacian filter. On the nave the aggregated gains leave a smooth glow about half a stop high on both sides of the bright window, the per-band gains dip beside it, and the local Laplacian filter keeps the most fine detail away from it. Radiance maps: Paul Debevec, Byong Mok Oh.

Blending⧉

Multiband / Laplacian-pyramid blending: a transition per band⧉

optional

A Laplacian pyramid provides a finite set of scales, not a continuum. Burt and Adelson blend corresponding band-pass levels using masks whose support grows with scale (Burt & Adelson 1983 (Laplacian pyramid); Burt & Adelson 1983 (spline blending)). Include the coarsest residual and use matching expansion operators during reconstruction (Chapter 6.6, Pyramids and wavelets).

The per-band blend is one line. At each level $k$ take a convex combination governed by a mask $m^k$,

$$ L^k_{\text{out}} = m^k\,L^k_A + (1-m^k)\,L^k_B, $$

and reconstruct by collapsing, $I_{\text{out}} = \sum_k \operatorname{expand}(L^k_{\text{out}})$. The whole method is build-two-pyramids, blend-each-band, collapse:

Algorithm 6
LA = laplacian_pyramid(A)
LB = laplacian_pyramid(B)
GM = gaussian_pyramid(mask)        # mask blurred more at coarse levels
for each level k:
    L_out[k] = GM[k] · LA[k] + (1 - GM[k]) · LB[k]
return collapse(L_out)

Build the masks with a Gaussian pyramid so they remain smooth blending weights rather than signed band-pass coefficients. Fine-band transitions are narrow in source-image units; coarse transitions are wider. With several sources and incomplete coverage, normalize valid weights at each level. Extend source data and masks consistently to prevent invalid borders contaminating the pyramid.

Box (L16 · prefilter before you downsample)

Building the Gaussian and Laplacian pyramids correctly requires blurring before you decimate at every level. Skip the prefilter and high frequencies alias into the coarse levels, and once aliased, they masquerade as genuine low frequencies. The blend then produces bold false low-frequency artifacts (moiré, color blotches) that no amount of clever masking can remove, because the masking operates band-by-band and the corruption is in the wrong band. The pyramid's quality is only ever as good as its prefilter. This is why the pyramid construction, not merely the blend formula, is load-bearing here. (Big lesson L16; first appears in BASIC (Resampling). See Chapter 6.6, Pyramids and wavelets.)

Replace the spatial mask $m$ with a per-pixel quality weight (well-exposedness, local contrast, saturation) and the identical machinery fuses an exposure bracket straight into a tone-mapped image. That is exposure fusion (Mertens et al. (exposure fusion)), which ships on phones: same pyramid blend, different mask, no high-dynamic-range (HDR) radiance map ever formed. We return to it in the HDR and cell-phone chapters.

fig-blend-mask-pyramid
Figure 20.3.6 (reproduced). Multiband blending and why the mask must use a Gaussian pyramid. The binary blend mask is built into a Gaussian pyramid $m^k = G^k(\text{mask})$: at the coarse levels it is heavily blurred (a wide transition), at the fine levels barely blurred (a sharp transition). Overlaid on the band-pass levels of the source, this shows the transition width tracking the band's scale, wide where we blend the slow exposure ramp, narrow where we keep crisp detail; a Laplacian pyramid of the mask would give the wrong widths and reintroduce ghosting. End to end, each source is decomposed into Laplacian-pyramid bands, each band blended with its own mask level, $L^k_{\text{out}} = m^k L^k_A + (1-m^k) L^k_B$, and the blended pyramid collapsed, $I_{\text{out}} = \sum_k \operatorname{expand}(L^k_{\text{out}})$, into one seamless mosaic. Compared with two-scale (Figure 20.3.2), every frequency now gets a transition matched to its scale, so even a strong exposure step or fine repeating texture across the seam blends invisibly.

The image and mask pyramids have different jobs. The image's Laplacian bands separate detail by scale. The mask's Gaussian levels remain smoothly varying selection weights; they are not signed detail coefficients. At a coarse image level, a transition spanning a few samples covers a wide region in the original image. At a fine level, the transition covers fewer original pixels. Thus a broad exposure mismatch can blend gradually while fine texture changes source over a narrower region. This improves the compromise available to one fixed feather width, but it cannot repair geometric misalignment or guarantee an invisible seam.

Motion and video magnification⧉

in the book↗

The human visual system has limited spatio-temporal sensitivity, but many signals that fall below that threshold are perfectly real and perfectly informative. Human skin reddens slightly with each heartbeat as blood pulses through the capillaries, a color change usually too faint for the eye to register, yet it carries your pulse rate. A tall building sways a few millimeters in the wind; a crane, a bridge, a guitar string each tremble at frequencies and amplitudes the eye smooths away. A sleeping infant's chest rises by a hair with every breath. A camera can record these changes as small variations in pixel values, provided its exposure, frame rate, noise level, and compression preserve them. It is invisible because the changes are small. The goal of this chapter is to amplify subtle temporal variation in ordinary video: take a video and amplify the variations the eye misses until they are plain to see, turning the camera into an instrument that reveals motion and color change otherwise beyond human perception.

We distinguish two approaches to the magnification of small changes in video. In the Lagrangian precursor we study techniques that explicitly analyze motion and amplify it. In contrast, Eulerian video magnification introduces methods that do not track movement over time and space and instead take a purely local approach to change magnification. We use a distinction from fluid dynamics to classify these methods: Eulerian versus Lagrangian. There are two ways to watch a moving fluid. The Lagrangian view rides along with a particle: you pick a parcel of water and follow it as it travels, asking where it goes. The Eulerian view stands still: you fix a point in space and watch what flows through it, asking how the velocity at that location changes over time. The same fork confronts anyone who wants to amplify motion in video. The Lagrangian approach tracks features as they move from frame to frame, extends their motion to every pixel, then redraws each feature at an exaggerated displacement. It works, and it was the first approach Liu et al. 2005, but it inherits all the difficulty of tracking: occlusions, featureless regions, and the brittleness of estimating motion at every pixel. The Eulerian approach refuses to track at all. Sit at a fixed pixel, treat its value over time as a one-dimensional signal, and amplify the temporal variations in that signal. It needs no correspondence, no flow, and no warping, spatial decomposition followed by temporal signal processing at fixed image locations. That choice is what makes Eulerian video magnification simple, fast, and the centerpiece of this chapter.

💡 Big lesson (Eulerian beats Lagrangian for small change)

When the change you want to amplify is small, do not track it. Fix your viewpoint and process the time series at each pixel. Tracking (Lagrangian) is general but brittle: it needs correspondence, which fails on occlusion and texture-less regions. Amplifying-in-place (Eulerian) trades that generality for robustness and speed, and for small motions the trade is favorable: a linear, per-pixel pipeline that parallelizes easily and needs no motion estimation at all. The cost is that the approximation is only valid for small amplitudes and limited amplification; push it too far and it breaks (next sections). Choose the Eulerian frame whenever the signal is subtle and the budget is tight.

fig-eulerian-vs-lagrangian
Figure 38.3.1 (reproduced). The two ways to watch motion. Left (Lagrangian): track a feature as it moves and redraw it at an exaggerated displacement. Follow the particle. This needs per-pixel correspondence (optical flow) and breaks on occlusion and featureless regions. Right (Eulerian): stand at a fixed pixel, plot its value as a one-dimensional time series, band-pass it to isolate the variation of interest, scale that variation by $\alpha$, and add it back. Watch what flows through the location. No tracking, no warping; just per-pixel signal processing. Borrowed from fluid dynamics, the Eulerian frame is what makes motion magnification simple and robust for small changes. After Wu et al. 2012.

The Lagrangian precursor: track, then exaggerate⧉

optional

The obvious approach came first. Motion Magnification Liu, Torralba, Freeman, Durand and Adelson 2005 takes the Lagrangian route: it measures how each part of the scene moves, groups the parts that move together, multiplies the displacement of one group, $\delta(t)\to\alpha\,\delta(t)$, and re-renders the video. It does not run a dense Chapter 12.8, Optical flow on the frames. It models the video as the pixels of a reference frame, typically the first, carried along trajectories that are translations, and most of its machinery serves two questions: how to measure those trajectories reliably when they are a fraction of a pixel, and which pixels must be magnified together so that a structure does not tear apart. It answers both from sparse feature points, whose motion can be trusted, and only then extends the motion to every pixel.

Registration. A camera on a tripod still shakes by more than the motions we want, so the frames are first aligned to the reference frame. Harris corners Harris & Stephens 1988 are detected at several scales in the reference frame and matched in every other frame by the minimum sum of squared differences (SSD) over a small patch, refined to sub-pixel precision by Lucas–Kanade Lucas & Kanade 1981. A global affine motion is fitted to these matches in each frame, and each feature gets a probability of following it, a Gaussian of its residual. A feature is kept as "still" only if the product of its probabilities over all frames is within a fixed factor per frame of the best feature's, which discards features on occluding boundaries, in disoccluded regions and on moving objects. The affine motions are refitted on the still features alone and every frame is warped to the reference; histogram equalization to the reference frame removes exposure changes.

Tracking features with a learned region of support. On the registered frames, a second set of features is detected in the reference frame and tracked through the sequence, again by SSD matching and Lucas–Kanade refinement. Near an occlusion boundary a square patch mixes two surfaces, and the half that belongs to the other surface drags the match. Each feature therefore learns a weight map over its 15 × 15 patch by expectation maximization: the E-step weights each pixel of the patch by how well it is reproduced along the trajectory, given the current displacements, and the M-step rematches the feature with those weights. After about ten iterations, a feature on the background next to a moving leaf compares only background pixels and holds still. Three tests then prune the tracks: a feature whose best match stays poor appears in the reference frame only and is removed; a feature whose average inlier probability is low is removed; and the frames where a kept feature is briefly occluded are cut from its trajectory and refilled by least squares, minimizing the squared second derivative of the trajectory over time.

Clustering by correlated motion. Magnifying each feature by itself would tear objects apart, so the tracks are grouped into layers that move together. Similar motion is not the right criterion: the end of the swing set's top beam moves more than its base, and the chains hanging from it swing in other directions, yet all of them move because the same person is swinging. The paper groups trajectories by their correlation over time. Writing the displacement of feature $n$ in frame $k$ as a complex number $v_{n,k}=v^x_{n,k}+j\,v^y_{n,k}$, the similarity of features $n$ and $m$ is

$$\rho_{n,m}=\frac{\Big|\sum_k v_{n,k}\,\overline{v_{m,k}}\Big|}{\sqrt{\sum_k |v_{n,k}|^2\;\sum_k |v_{m,k}|^2}},$$

a normalized correlation that ignores the size of the two motions and the angle between their directions: it is near 1 for two points of one oscillating structure, whatever their amplitudes, and near 0 for independent motions, such as the swing set against leaves blowing in the wind over 25 frames. Features with fewer than five neighbors at $\rho>0.9$ are discarded as outliers. The matrix of $\rho$ between all remaining tracks is clustered by spectral clustering Shi & Malik 2000 into a number of clusters the user chooses, six for the swing set. The cluster whose features do not move is the background.

From features to pixels. Each cluster gives a dense displacement field over the whole frame, interpolated from its features by locally weighted linear regression, which fits a local affine motion around each pixel (computed on every fourth pixel and interpolated bicubically between them). Every pixel now has one candidate trajectory per layer, and it is assigned to a layer by a graph cut Boykov et al. 2001, as in Chapter 10.9, Seam optimization, on three cues: how well the layer's motion reproduces the pixel in the ten neighboring frames, a Gaussian mixture model of each layer's colors as in GrabCut Rother et al. 2004, which carries the assignment into flat regions where motion says nothing, and a smoothness term that is weaker across intensity edges. The color models are re-estimated and the cut rerun three times. The cut is made in every frame separately, so the assignments are reconciled in the reference frame: a pixel joins a layer when its trajectory carries that layer's label in at least 80% of the frames. Pixels that fit no layer, such as the person on the swing, who moves too fast to track, form an outlier layer. The user can correct the masks, on the reference frame only.

Layers and background synthesis. Each layer's appearance is the median of the intensities along its pixels' trajectories, and the background layer is one still image. Magnified motion uncovers what no frame recorded: behind the swing set's beam, displaced forty times farther than it ever moved, lies background no frame saw. These pixels are marked by occlusion masks and filled by the nonparametric texture synthesis of Efros and Leung Efros & Leung 1999, which grows each missing pixel from the neighborhoods of the known background (Chapter 21.1, Inpainting, texture synthesis, and object removal). When little background is ever visible, as behind the loaded bookshelf, the synthesis needed help by hand.

Magnifying and rendering. The user picks a layer and a factor, between 4 and 40 in the paper, and every displacement of that layer from its reference position is multiplied by it; for the handstand, the amplification is nearly linear below 40 pixels and saturates beyond, so that the figure is not distorted. The output is drawn back to front: the background, then the outlier pixels copied from the registered input, then the layers, each with its reference-frame intensities at its measured or magnified displacements, in an order the user sets or occlusion reasoning computes.

Algorithm 7
motion_magnify(frames, n_layers, layer, factor):
    frames = register_affine(frames, still_features(frames))          # cancel camera shake
    tracks = track_features(frames)          # SSD + Lucas-Kanade, learned region of support, pruned
    rho    = trajectory_correlation(tracks)                           # the matrix rho[n, m]
    groups = spectral_cluster(rho, n_layers)
    fields = [interpolate_dense(tracks[g]) for g in groups]           # one displacement field per layer
    masks  = graph_cut_layers(frames, fields)  # motion, color and smoothness; 80% vote over time
    looks  = [median_along_trajectories(frames, f, m) for f, m in zip(fields, masks)]
    looks[background] = texture_fill(looks[background])              # pixels no frame saw
    fields[layer] = factor * fields[layer]
    return render_back_to_front(looks, masks, fields, outliers(frames, masks))

The method is physically explicit: we measure how far each thing moved and draw it moving farther. It is also expensive and fragile. The swing set, six layers and an outlier layer, took ten hours of computation, and every stage can fail on its own terms: a feature lost at an occlusion, two parts of one structure that land in different layers and break apart when magnified (the swing set's dark, occluded far leg did, until the user fixed its mask), a hole whose synthesized texture does not match. Sub-pixel motions are exactly the regime where matching is least precise, and a change of color with no motion, such as a pulse, gives nothing to track. This is what the Eulerian frame was invented to escape.

Video 3. Video: Motion Magnification, the Lagrangian precursor: track features, cluster them into layers, amplify their displacement, and re-render to exaggerate otherwise-invisible motions. Liu, Torralba, Freeman, Durand and Adelson 2005 (Liu et al. 2005).
fig-motion-mag-1
Figure 38.3.2 (reproduced). Lagrangian motion magnification. An input clip whose structural motion is too small to see, beside the output in which the tracked features' displacements have been scaled up by $(1+\alpha)$ and re-rendered, so the otherwise-invisible movement becomes plainly visible. After Liu et al. 2005.
fig-motion-mag-2
Figure 38.3.3 (reproduced). The Lagrangian pipeline. Features are tracked to recover each point's tiny displacement $\delta(t)$, the displacements are grouped into layers and amplified to $(1+\alpha)\,\delta(t)$, and the frame is warped to render the exaggerated motion. After Liu et al. 2005.
fig-motion-mag-9
Figure 38.3.4 (reproduced). Reading motion in the space–time volume. Left, a frame of the swing set; the red and yellow line marks a vertical section through the beam. Middle, that section stacked over time in the $(x,y,t)$ volume of the original sequence: the beam's motion is too small to see. Right, the same section after motion magnification by a factor of 40: the beam oscillates visibly, and the texture behind it, which no frame showed, has been filled in. The magnified motion is almost periodic despite the noise, and its shape shows that the beam's real motion is a mixture of harmonics, not a single one. Figure 9 of Liu et al. 2005, reproduced with permission.

Eulerian video magnification: amplify the time series at each pixel⧉

in the book↗

Start with the easiest version, amplifying a color change, because there the Eulerian recipe is almost too simple to believe. Point a camera at someone's face, hold it steady, and consider a single pixel on their cheek. Plot its value over time and you get a nearly-flat line with a tiny ripple: the ambient color, plus a minuscule periodic reddening synchronized to the heartbeat. The pulse is in that ripple, maybe a fraction of a percent of the signal, utterly swamped. To reveal it:

  1. Pick the band you care about. A pulse at 60 beats per minute is a 1 Hz signal. Choose a band that covers the rates expected in this recording, rather than imposing one narrow band on every person. Build a temporal bandpass filter tuned to that range and run it along each pixel's time series. The filter passes the heartbeat ripple and rejects out-of-band drift and noise; lighting variation, motion, and noise within the selected band remain. This is ordinary one-dimensional signal processing, the Chapter 6.3, Fourier-domain habit of isolating a frequency band, applied along the time axis instead of space.
  2. Amplify it. Multiply the band-passed signal by a factor $\alpha$, say $\alpha = 100$, and add it back to the original. The pixel's mean color is unchanged; only its tiny periodic excursion is now $1+\alpha=101$ times its original amplitude for an ideal unit-gain passband.
  3. Reconstruct. Do this at every pixel and play the video back. The face now visibly flushes and pales in time with the pulse. A signal that was below perception is now unmistakable, and you can read the heart rate straight off the screen (peak-detect the amplified trace and count).

That is the entire algorithm for color magnification: per-pixel temporal bandpass, scale, add back. There is one practical refinement. The pulse signal is spatially smooth (a whole region of cheek reddens together) while the noise is spatially fine, so we first spatially blur or downsample the frame, pooling pixels into a coarse pyramid level, before temporal filtering. Averaging over a neighborhood raises the signal-to-noise ratio (the √N averaging of Chapter 13.2, Denoising by averaging) while sacrificing spatial detail; this is useful when the desired color change is spatially smooth. This is where the linear pyramid of Chapter 6.6, Pyramids and wavelets enters: decompose each frame into spatial-frequency bands, temporally filter and amplify each band, and collapse the pyramid back. Coarse bands carry the clean low-frequency signal; we can amplify them hard and the fine, noisy bands gently or not at all (Figure 38.3.5).

fig-evm-pipeline
Figure 38.3.5 (reproduced). The Eulerian video magnification pipeline. A spatial decomposition (a Laplacian pyramid) splits the input video into spatial-frequency bands. The same temporal filter is applied to every band, pixel by pixel: the inset shows one pixel's intensity over time and the filter's frequency response, set to the frequencies of interest (about 0.8 to 1 Hz for a pulse). Each filtered band is multiplied by its own amplification $\alpha_1, \dots, \alpha_n$, added back to its band ($\Sigma$), and the bands are collapsed to reconstruct the output video. The whole pipeline is linear and per pixel, with no motion estimation and no tracking. The example is a digital SLR during a photo burst: the $y$–time slices under the input and output show the camera's motion from the flipping mirror, invisible in the input and plain in the output. Figure 2 of Wu et al. 2012, reproduced with permission.
Video 4. Video: Eulerian Video Magnification for Revealing Subtle Changes in the World. Amplifying subtle per-pixel color and motion changes (a pulse, a breath) with no tracking. Wu, Rubinstein, Shih, Guttag, Durand and Freeman 2012 (Wu et al. 2012).
fig-video-magnification-demo
Figure 38.3.6, stage 1 (reproduced). Eulerian video magnification on the classic clips, as in the authors' released code. A color clip (face, face&nbsp;2, baby&nbsp;2, the synthetic pulse) is blurred and downsampled to one coarse level; each coarse pixel is band-passed in time, multiplied by $\alpha$ (its chroma by $\alpha$ times the chroma attenuation) and upsampled back onto the original, so fine detail is never amplified. A motion clip goes through a full Laplacian pyramid instead. Each band's amplification is capped so that $(1+\alpha)\delta$ stays under an eighth of the band's wavelength, with the cutoff wavelength $\lambda_c$ setting the scale, and the finest band and the low-pass residual are left alone. The temporal filter is ideal (the in-band frequencies of the whole clip) or the causal difference of two first-order Butterworth low-passes. Each clip opens with the paper's band, $\alpha$ and filter, with the coarse level and $\lambda_c$ scaled to the demo's lower resolution. Guitar and camera were filmed at 600 and 300 frames per second, so their bands show both playback and real frequencies. Push $\alpha$ on a motion clip and watch the edges halo and the noise grow, or upload your own steady video. After Wu et al. 2012.

Why amplifying brightness amplifies motion⧉

in the book↗

Color magnification is intuitive because we directly scale the color change. The same operation, amplifying a brightness variation in place, also amplifies motion, even though we never tracked anything or moved a single pixel. It rests on the same first-order link between intensity and motion that underlies Chapter 12.8, Optical flow.

Here is the principle, in one dimension. Consider an edge, an intensity profile $I(x)$ that ramps from dark to light, and suppose between two frames the whole profile shifts by a tiny amount $\delta$. The new frame is $I(x - \delta)$. For a small shift, the first-order Taylor expansion says

$$ I(x - \delta) \;\approx\; I(x) \;-\; \delta\,\frac{\partial I}{\partial x}. $$

That is, a small spatial motion $\delta$ shows up, at a fixed location $x$, as a small temporal change in brightness equal to $-\delta$ times the local image gradient. The motion and the brightness wiggle are the same thing to first order, which is exactly the brightness-constancy relation of optical flow. Now do the Eulerian move: take that temporal brightness change $-\delta\,\partial I/\partial x$, multiply it by $\alpha$, and add it to the already shifted frame. The reconstructed signal becomes

$$ I(x) \;-\; (1+\alpha)\,\delta\,\frac{\partial I}{\partial x} \;\approx\; I\big(x - (1+\alpha)\,\delta\big). $$

The amplified frame looks just like the original profile shifted by $(1+\alpha)\,\delta$, so the motion has been magnified by the factor $(1+\alpha)$, without our ever estimating $\delta$ or warping anything. We amplified a brightness ripple at a fixed pixel and got an exaggerated motion for free, because for small displacements the two are linearly interchangeable. This is why the Eulerian method works: it converts the hard geometric problem of motion amplification into the easy signal problem of brightness amplification (Figure 38.3.7).

fig-evm-motion-from-brightness
Figure 38.3.7 (reproduced). Why amplifying brightness amplifies motion. The first stage shows an intensity profile $I(x)$ (frame $t$) and the same profile shifted by a small $\delta$ (frame $t+1$), with the displacement drawn as a vector at half intensity. The second adds the Eulerian output, which never moves a pixel: at every fixed $x$ it multiplies the frame difference $D(x) = I(x-\delta) - I(x)$ by $(1+\alpha)$ and adds it to frame $t$. The dashed gray curve and the gray vector are what a true motion of $(1+\alpha)\delta$ would give. While $(1+\alpha)\delta$ is a small fraction of the spatial scale $\lambda$, the amplified profile follows the shifted one, because to first order $D(x) \approx -\delta\,\partial I/\partial x$. Raise $\alpha$ or $\delta$ and it stops following: the edge overshoots below 0, and a sinusoid grows in amplitude instead of moving. Choose the amplification, the motion, the profile and its scale; drag the plot to move the probe pixel $x_0$, where the blue arrow is $D$, from frame $t$ to frame $t+1$, and the red arrow is the $\alpha D$ the output adds beyond it. After Wu et al. 2012.

The same derivation tells us where it breaks, and we should not gloss over it (this is the method's central limitation). The Taylor expansion is only good while the displacement $\delta$ is small compared to the spatial wavelength $\lambda$ of the image structure, small compared to how fast the brightness varies in space. Amplify too hard, or apply the method to a motion that is already not-so-small, and $(1+\alpha)\,\delta$ outruns the linear regime: the added term no longer equals a clean shift, and the edge breaks up into ringing, halos, and amplified noise rather than moving cleanly. There is therefore a limit: the usable amplification $\alpha$ depends on the spatial wavelength $\lambda$, beyond which the intensity-based method degrades. Sharp, high-frequency structure (small $\lambda$) tolerates the least amplification; smooth, blurry structure (large $\lambda$) the most. The fix for this limit is the next section's subject.

Phase-based magnification: move the motion into phase⧉

optional

The intensity method amplifies $\delta\,\partial I/\partial x$, a quantity that mixes the motion $\delta$ with the image's own contrast $\partial I/\partial x$, so noise (which also has a gradient) gets amplified alongside signal, and the small-displacement assumption is tight. Phase-based video motion processing Wadhwa et al. 2013 reduces these problems by changing what we amplify. The key fact comes from the same place as the Fourier shift theorem: when a signal translates, the amplitude of its frequency components is unchanged and the entire motion is carried in their phase. Shift a sinusoid and you don't change how big it is, only where its peaks fall, which is its phase. So instead of amplifying a brightness difference, measure the local phase and amplify the phase variation over time.

Concretely, decompose each frame with a complex steerable pyramid, a Chapter 6.6, Pyramids and wavelets whose sub-bands are localized in space, scale, and orientation and come with a local phase at every pixel (like a local Fourier transform). A small local motion shows up as a small change in that local phase over time. Now run the Eulerian recipe on the phase signal: band-pass the temporal phase variation, multiply by $\alpha$, and resynthesize the pyramid with the phases shifted. For a locally sinusoidal component, phase shift represents translation. Adding $\alpha$ times the filtered phase variation gives a total factor of $1+\alpha$ for motion in the passband. Phase wrapping, low-amplitude bands, occlusions, and motion beyond the spatial support still limit this approximation.

This buys two real improvements. First, less noise: the method keeps sub-band amplitudes unchanged instead of multiplying their fluctuations. Phase estimates are still noisy when contrast is weak, so amplitude-weighted smoothing and reliable-band selection matter. Second, larger amplifications before breakup: working in phase respects the structure of translation better than the first-order intensity approximation, so you can push $\alpha$ much higher before edges fall apart. The cost is more computation: a complex, oriented, multi-scale pyramid instead of a plain Laplacian one, but the quality gain is large enough that phase-based processing is the method of choice when the budget allows. (A faster, real-time variant uses a Riesz-pyramid approximation of the same idea Wadhwa et al. 2014.)

Video 5. Video: Phase-Based Video Motion Processing. Magnifying motion from the phase of a complex steerable pyramid, far cleaner than amplifying intensity. Wadhwa, Rubinstein, Durand and Freeman 2013 (Wadhwa et al. 2013).
fig-video-magnification-demo
Figure 38.3.6, stage 2 (reproduced). Phase-based magnification beside the Eulerian method, on the same clips. The demo uses the Riesz pyramid Wadhwa et al. 2014, the fast form of the complex steerable pyramid: each Laplacian band gets a quadrature pair from two three-tap filters, and the change of local phase from one frame to the next is accumulated over the clip, band-passed in time, smoothed with weights proportional to the local amplitude (blur $\sigma$), multiplied by $\alpha$ and applied as a phase shift. Switch the method on a motion clip and compare the two at the same $\alpha$: the Eulerian output halos at edges and amplifies noise much sooner. Pushed far enough, the phase shift passes $\pi$ and contrast inverts, which happens sooner here than in the paper because the demo works at about a quarter of the resolution with octave bands. Both methods run in the browser as Halide pipelines compiled to WebAssembly. After Wadhwa et al. 2013 and Wadhwa et al. 2014.

What it reveals: vital signs, structures, materials, modes⧉

optional

With a near-free microscope for temporal change, the applications fall out by choosing which temporal band to amplify and where to point the camera.

Vital signs, contactlessly. Tuned to an appropriate band, color magnification can reveal pulse-related changes in facial video without an electrode touching the skin. Demonstrations have compared recovered rates with contact measurements; agreement depends on motion, lighting, skin visibility, and camera quality. This is the basis of remote photoplethysmography Poh et al. 2010 (rPPG), recovering vital signs from an ordinary webcam. Tuned to the breathing band it reads respiration. This is medicine's interest in the method: monitoring the fragile (premature infants, burn patients) where contact sensors are awkward or harmful.

Structural and material analysis. Point the camera at a building, a crane, or a bridge and amplify the sub-hertz band, and the structure's gentle sway under wind and traffic becomes visible. This gives a non-contact way to watch how a structure deflects and where it is stiff or slack. Amplify a guitar's body or a wine glass and you can see it ring. Quantitative displacement measurement also needs image-scale calibration and a valid motion model; knowing the display amplification $\alpha$ alone does not give displacement in millimeters.

Vibration modes. Drive an object at its resonant frequencies and different parts move in characteristic patterns, the modal shapes illustrated by Chladni plates (sand on a vibrating plate collecting at the still nodal lines) and with laser interferometry. Motion magnification reveals these modes passively, from ordinary video, by amplifying each resonant temporal band in turn and watching which regions of the object move together and which stay nodal. This is the bridge to the next chapter: an object's tiny, mode-shaped vibrations, made visible here, also carry sound, and recovering that sound from the same kind of micro-motion is the visual microphone.

fig-evm-pulse-result
Figure 38.3.8 (reproduced). Eulerian magnification at work. Top: color magnification (≈0.8–1 Hz, $\alpha\approx100$) makes a face visibly flush and pale with each heartbeat; peak-detecting the amplified trace recovers a pulse rate that matches a contact EKG, so the vital sign is read with no sensor on the skin. Bottom: motion magnification (sub-hertz to tens-of-hertz bands) reveals otherwise invisible movement, such as a wrist's pulse (radial/ulnar), a crane or building swaying, a string or wine glass ringing at its resonant mode. The recovered motion is quantitative (we set $\alpha$), so the same video serves as a measurement of vital signs, structural deflection, and vibration modes. After Wu et al. 2012 and Wadhwa et al. 2013.
fig-eulerian-video-magnification
Figure 38.3.9 (reproduced). Eulerian video magnification on real footage, the color (pulse) result. An ordinary video of a face, band-passed at the heart-rate frequency and amplified ($\alpha\approx100$), makes the otherwise-invisible flush and pallor of each heartbeat plainly visible; the per-pixel temporal trace yields a pulse rate with no contact sensor. After Wu et al. 2012.
fig-motion-magnification
Figure 38.3.10 (reproduced). Eulerian video magnification on real footage, the motion result. Amplifying the sub-hertz temporal band of a video of a sleeping baby makes its otherwise-invisible breathing clearly visible, and the same processing exaggerates a structure's sway or a resonant ring, all with no tracking or warping, just amplified per-pixel temporal variation. After Wu et al. 2012.
Video 6. Video: Revealing Invisible Changes in the World. A reel of Eulerian video-magnification results: a face flushing with the pulse, a wrist's beat, a breathing baby, and structures swaying, all pulled from ordinary video by amplifying per-pixel temporal variation (Wu et al. 2012).

By refusing to track and instead doing per-pixel signal processing, motion magnification trades generality for a method that is linear, fast, and robust in exactly the regime that matters, small and subtle change, at the price of a small-amplitude approximation that phase-based processing then loosens. It is a near-perfect instance of the book's measure-then-process stance: when the camera preserves enough of the small temporal signal, processing can make it visible. The next chapter takes the same instrument and listens to it.


Recap: big lessons in this lecture

💡 Big lesson (L10.4)

The eye cares about local contrast, not absolute values, so edit the contrast directly, in the multiscale decomposition. Where gradient-domain methods (Chapter 10.8, Poisson image editing) manipulate the gradient field and re-integrate, local Laplacian filtering manipulates the Laplacian-pyramid coefficients (the local contrast at each scale) with a per-pixel point curve, then collapses the pyramid. Both discard or reshape contrast while letting the absolute level fall out, and both are kin to the bilateral base/detail split; the difference is that working band by band with an identity tail for large contrasts removes the mechanism that makes a single base layer halo: no base value is committed once for the whole edge. In practice the halos shrink to the point of being hard to find at moderate settings, though extreme parameters can still produce small artifacts near strong edges. (L10.4, registered in Chapter 10.8, Poisson image editing; this is its multiscale-decomposition appearance.)

💡 Big lesson (Eulerian beats Lagrangian for small change)

When the change you want to amplify is small, do not track it. Fix your viewpoint and process the time series at each pixel. Tracking (Lagrangian) is general but brittle: it needs correspondence, which fails on occlusion and texture-less regions. Amplifying-in-place (Eulerian) trades that generality for robustness and speed, and for small motions the trade is favorable: a linear, per-pixel pipeline that parallelizes easily and needs no motion estimation at all. The cost is that the approximation is only valid for small amplitudes and limited amplification; push it too far and it breaks (next sections). Choose the Eulerian frame whenever the signal is subtle and the budget is tight.