Aliasing

Aliasing is generally avoided by applying low-pass filters or anti-aliasing filters (AAF) to the input signal before sampling and when converting a signal from a higher to a lower sampling rate.

When a digital image is viewed, a reconstruction is performed by a display or printer device, and by the eyes and the brain.

An example of spatial aliasing is the moiré pattern observed in a poorly pixelized image of a brick wall.

[1] Temporal aliasing is a major concern in the sampling of video and audio signals.

To prevent this, an anti-aliasing filter is used to remove components above the Nyquist frequency prior to sampling.

In video or cinematography, temporal aliasing results from the limited frame rate, and causes the wagon-wheel effect, whereby a spoked wheel appears to rotate too slowly or even backwards.

Some of the most dramatic and subtle examples of aliasing occur when the signal being sampled also has periodic content.

Actual signals have a finite duration and their frequency content, as defined by the Fourier transform, has no upper bound.

Some amount of aliasing always occurs when such continuous functions over time are sampled.

Functions whose frequency content is bounded (bandlimited) have an infinite duration in the time domain.

Sinusoids are an important type of periodic function, because realistic signals are often modeled as the summation of many sinusoids of different frequencies and different amplitudes (for example, with a Fourier series or transform).

For example, a snapshot of the lower right frame of Fig.2 shows a component at the actual frequency

Aliasing matters when one attempts to reconstruct the original waveform from its samples.

The lower left frame of Fig.2 depicts the typical reconstruction result of the available samples.

exceeds the Nyquist frequency, the reconstruction matches the actual waveform (upper left frame).

The figures below offer additional depictions of aliasing, due to sampling.

No matter what function we choose to change the amplitude vs frequency, the graph will exhibit symmetry between 0 and fs.

Folding is often observed in practice when viewing the frequency spectrum of real-valued samples, such as Fig.4.

That is typically approximated by filtering the original signal to attenuate high frequency components before it is sampled.

These attenuated high frequency components still generate low-frequency aliases, but typically at low enough amplitudes that they do not cause problems.

The filtered signal can subsequently be reconstructed, by interpolation algorithms, without significant additional distortion.

But the fidelity of a theoretical reconstruction (via the Whittaker–Shannon interpolation formula) is a customary measure of the effectiveness of sampling.

Historically the term aliasing evolved from radio engineering because of the action of superheterodyne receivers.

The first written use of the terms "alias" and "aliasing" in signal processing appears to be in a 1949 unpublished Bell Laboratories technical memorandum[4] by John Tukey and Richard Hamming.

The first published use of the term "aliasing" in this context is due to Blackman and Tukey in 1958.

[5] In their preface to the Dover reprint[6] of this paper, they point out that the idea of aliasing had been illustrated graphically by Stumpf[7] ten years prior.

The 1949 Bell technical report refers to aliasing as though it is a well-known concept, but does not offer a source for the term.

Aliasing occurs whenever the use of discrete elements to capture or produce a continuous signal causes frequency ambiguity.

The lack of parallax on viewer movement in 2D images and in 3-D film produced by stereoscopic glasses (in 3D films the effect is called "yawing", as the image appears to rotate on its axis) can similarly be seen as loss of angular resolution, all angular frequencies being aliased to 0 (constant).

A form of spatial aliasing can also occur in antenna arrays or microphone arrays used to estimate the direction of arrival of a wave signal, as in geophysical exploration by seismic waves.

Dots in the sky due to spatial aliasing caused by halftone resized to a lower resolution
Fig.2 Upper left: Animation depicts a sequence of sinusoids, each with a higher frequency than the previous ones. These "true" signals are also being sampled (blue dots) at a constant sampling frequency or rate . Upper right: The continuous Fourier transform of the sinusoid (not the samples). The single non-zero component, depicting the actual frequency, means that there is no ambiguity. Lower right: The discrete Fourier transform of just the available samples. The presence of two components means that the samples can fit at least two different sinusoids, one of which is with the true frequency (upper-right). Another sinusoid is with an alias frequency . (Here the absolute value of it is shown.) Lower left: Using the same samples (now in orange), the default reconstruction algorithm produces the lower-frequency sinusoid.
Fig.3: The black dots are aliases of each other. The solid red line is an example of amplitude varying with frequency. The dashed red lines are the corresponding paths of the aliases.
Fig.4: The Fourier transform of music sampled at 44,100 samples/sec exhibits symmetry (called "folding") around the Nyquist frequency (22,050 Hz).
Fig.5: Graph of frequency aliasing, showing folding frequency and periodicity. Frequencies above f s /2 have an alias below f s /2, whose value is given by this graph.
Two complex sinusoids, colored gold and cyan, that fit the same sets of real and imaginary sample points when sampled at the rate ( f s ) indicated by the grid lines. The case shown here is: f cyan = f −1 ( f gold ) = f gold f s
Illustration of 4 waveforms reconstructed from samples taken at six different rates. Two of the waveforms are sufficiently sampled to avoid aliasing at all six rates. The other two illustrate increasing distortion (aliasing) at the lower rates.