Images replaced for licensing. The book is published under a CC BY-NC-ND license, which covers only the book as a whole and not its individual images, so this page does not republish the book’s photographs. License-free images stand in for them:
- The cameraman photograph (scikit-image) stands in for a photograph of a zebra (Figure 20.16).
Figure 20.1: the continuous wave
The input is a cosine with radian frequency , i.e. an ordinary frequency of Hz, completing nine cycles over the unit interval. This is the signal that sampling has to capture.
Figure 20.2: sampling the wave
Sample with period , giving 11 samples across the interval. With 11 samples for 9 periods it seems sufficient, with more samples than periods, yet Nyquist needs . The block records the samples .
Figure 20.3: many waves, the same samples
Reconstruction is ambiguous: nothing constrains the signal between samples. Under the slow-and-smooth prior the reconstruction is the slowest cosine through the dots. Here the 9 Hz input aliases to Hz: subtracting one sampling rate gives the low frequency that shares every sample, since .
Figure 20.4: aliasing bends a 2-D pattern
The 2-D analogue is : diagonal waves whose frequency rises with , slow at the bottom-left and ever finer toward the top-right. Point-sampling to with no pre-filter folds the unrepresentable high frequencies back, and the dominant orientation of the stripes flips.
Figure 20.5: a band-limited signal
The sampling theorem is stated for band-limited signals: those whose Fourier transform is zero above some maximum frequency . The sketch below shows such a spectrum, nonzero only inside .
Figure 20.6: the delta train
Sampling is modelled by multiplying the signal with a delta train (Dirac comb) : impulses at every multiple of . Here . Arrow heads mark the impulses (each of infinite height, unit area).
Figure 20.7: sampling with the delta train
Multiplying a continuous signal by the delta train keeps its values only at the impulse times, producing the sampled signal . Left: the continuous signal. Right: its delta-sampled version, impulses scaled by the signal.
Figure 20.8: aliasing in the Fourier domain
Sampling replicates the spectrum: the transform of the sampled signal is , copies of spaced by the sampling frequency . (a) When the copies stay separate and the original is recoverable. (b) When neighboring copies overlap; high frequencies leak into low ones. That is aliasing.
Figure 20.9: the sinc function
Ideal reconstruction convolves the samples with a , the impulse response of the ideal low-pass (box) filter. peaks at the origin, is symmetric, and decays as with zero crossings at the integers.
Figure 20.10: sinc interpolation
The ideal reconstruction is : a scaled, shifted sinc centered on each sample. The thin curves are the individual sincs; their sum (thick) is the smooth interpolation. Each sinc’s zero crossings fall on the other sample locations, so every sample is honoured exactly.
Figure 20.11: reconstruction degrades with sampling rate
One band-limited signal (a sum of a 3 Hz and 7 Hz cosine, so ) is sampled at three rates. Left: the samples on the signal. Middle: the magnitude spectrum of the samples: peaks land at the true frequencies only while Nyquist holds, otherwise they fold. Right: sinc reconstruction (red) vs the original. Above Nyquist () it is exact; below, it is wrong.
Figure 20.12: local interpolation kernels
Ideal sinc reconstruction needs every sample. Cheaper local kernels trade accuracy for support. Nearest interpolation convolves the samples with a box of width ; linear interpolation convolves with a triangle of width (the convolution of two boxes). Both are shown as the kernel that the samples are convolved with.
Figure 20.13: 2-D sampling patterns
Images need not be sampled on a square grid. Three arrangements: a rectangular grid, a hexagonal grid (alternate rows offset by half a step, rows spaced by ), and an irregular grid (jittered positions).
Figure 20.14: Fourier transforms of the sampling lattices
In the frequency domain each sampling lattice repeats the spectrum on the reciprocal lattice, and the no-aliasing region is its Voronoi cell (red). The rectangular lattice gives a square cell; the hexagonal lattice gives a hexagon, which packs the largest alias-free area per sample, about a 14% resolution gain.
Figure 20.15: the cone mosaic
The book illustrates that the photoreceptors in the primate fovea sit on an approximately hexagonal lattice, using a micrograph of a monkey retina from Curcio et al. (Figure 20.15). That is measured microscopy, not a computed plot, so there is nothing to regenerate here. The previous figure already shows why hexagonal sampling is favored.Figure 20.16: aliasing in a real image
The book downsamples a photograph of a zebra and the stripes change orientation. Here the public-domain cameraman test image stands in for it: you point-sample it with no pre-filter at two rates. Reconstructed to full size, the fine detail (tripod, coat texture) breaks up, and the log magnitude spectrum shows energy folding inward.
Figure 20.17: the anti-aliasing filter
Blurring with a low-pass filter before sampling removes the frequencies the grid cannot represent, so they no longer fold. The next cell applies a Kornia Gaussian blur, then point-samples at the same 1/8 rate. The result keeps the recognizable low-frequency structure, and its spectrum no longer shows the aliased fold-in, at the cost of the lost (genuinely unrepresentable) detail.

