38.3 Motion and video magnification⧉
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.
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.
38.3.1 The Lagrangian precursor: track, then exaggerate⧉
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
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.
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.
38.3.2 Eulerian video magnification: amplify the time series at each pixel⧉
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:
- 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.
- 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.
- 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).
How do you band-pass a pixel's time series in practice? The textbook route is the ideal (brick-wall) Fourier filter: take the whole clip's time series, FFT it, zero every bin outside the band, invert. It is exact and one line of code, but it has two flaws for video. It is not causal: it needs the entire clip in memory at once, so it cannot run live as frames arrive. And the FFT treats the signal as periodic, so the end of the clip wraps around onto the beginning, the same circular-convolution wrap-around as spatial FFT filtering, and that seam leaks as ringing and ghosting at the temporal boundaries. The practical choice is a recursive (IIR) filter, and the classic is the Butterworth. A Butterworth filter is the maximally flat one: its passband is as flat as possible (no ripple), rolling off smoothly rather than as a brick wall. You build a band-pass as the difference of two Butterworth low-passes, one at each cutoff frequency, and each low-pass is a tiny recurrence. Every output sample is a fixed weighted combination of the last few input and output samples. Because it feeds its own output back (that is the "infinite impulse response"), it needs only a handful of stored values: O(1) memory, causal, real-time, and with no notion of the signal being periodic there is no wrap-around. The price is a gentler roll-off and a phase delay. Both are minor here, and the phase can be canceled by running the recurrence forward then backward. The demo at the end of this section offers it beside the ideal filter, built as in the authors' code: the difference of two first-order Butterworth low-passes, per pixel and per pyramid band.

38.3.3 Why amplifying brightness amplifies motion⧉
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
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
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).

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.
38.3.4 Phase-based magnification: move the motion into phase⧉
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.)

38.3.5 What it reveals: vital signs, structures, materials, modes⧉
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.
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 of this chapter
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.