In signal processing and related disciplines, aliasing is a phenomenon that a reconstructed signal from samples of the original signal contains low frequency components that are not present in the original one. This is caused when, in the original signal, there are components at frequency exceeding a certain frequency called Nyquist frequency, , where is the sampling frequency (undersampling). This is because typical reconstruction methods use low frequency components while there are a number of frequency components, called aliases, which sampling result in the identical sample. It also often refers to the distortion or artifact that results when a signal reconstructed from samples is different from the original continuous signal.
Aliasing can occur in signals sampled in time, for instance in digital audio or the stroboscopic effect, and is referred to as temporal aliasing. Aliasing in spatially sampled signals (e.g., moiré patterns in ) is referred to as spatial aliasing.
Aliasing is generally avoided by applying or anti-aliasing filters (AAF) to the input signal before sampling and when converting a signal from a higher to a lower sampling rate. Suitable reconstruction filtering should then be used when restoring the sampled signal to the continuous domain or converting a signal from a lower to a higher sampling rate. For spatial anti-aliasing, the types of anti-aliasing include fast approximate anti-aliasing (FXAA), multisample anti-aliasing, and supersampling.
An example of spatial aliasing is the moiré pattern observed in a poorly pixelized image of a brick wall. Spatial anti-aliasing techniques avoid such poor pixelizations. Aliasing can be caused either by the sampling stage or the reconstruction stage; these may be distinguished by calling sampling aliasing prealiasing and reconstruction aliasing postaliasing.
Temporal aliasing is a major concern in the sampling of video and audio signals. Music, for instance, may contain high-frequency components that are inaudible to humans. If a piece of music is sampled at 32,000 Sampling rate (Hz), any frequency components at or above 16,000 hertz (the Nyquist frequency for this sampling rate) will cause aliasing when the music is reproduced by a digital-to-analog converter (DAC). The high frequencies in the analog signal will appear as lower frequencies (wrong alias) in the recorded digital sample and, hence, cannot be reproduced by the DAC. 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. Aliasing has changed its apparent frequency of rotation. A reversal of direction can be described as a negative frequency. Temporal aliasing frequencies in video and cinematography are determined by the frame rate of the camera, but the relative intensity of the aliased frequencies is determined by the shutter timing (exposure time) or the use of a temporal aliasing reduction filter during filming.
Like the video camera, most sampling schemes are periodic; that is, they have a characteristic sampling frequency in time or in space. Digital cameras provide a certain number of samples () per degree or per radian, or samples per mm in the focal plane of the camera. Audio signals are sampled (digitized) with an analog-to-digital converter, which produces a constant number of samples per second. Some of the most dramatic and subtle examples of aliasing occur when the signal being sampled also has periodic content.
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.]]
Sine wave 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). Understanding what aliasing does to the individual sinusoids is useful in understanding what happens to their sum.
When sampling a function at frequency (i.e., the sampling interval is ), the following functions of time yield identical sets of samples if the sampling starts from such that where , and so on:
A frequency spectrum of the samples produces equally strong responses at all those frequencies. Without collateral information, the frequency of the original function is ambiguous. So, the functions and their frequencies are said to be aliases of each other. Noting the sine functions as odd functions :
thus, we can write all the alias frequencies as positive values: . For example, a snapshot of the lower right frame of Fig.2 shows a component at the actual frequency and another component at alias . As increases during the animation, decreases. The point at which they are equal is an axis of symmetry called the folding frequency, also known as Nyquist frequency.
Aliasing matters when one attempts to reconstruct the original waveform from its samples. The most common reconstruction technique produces the smallest of the frequencies. So, it is usually important that be the unique minimum. A necessary and sufficient condition for that is called the Nyquist condition. The lower left frame of Fig.2 depicts the typical reconstruction result of the available samples. Until exceeds the Nyquist frequency, the reconstruction matches the actual waveform (upper left frame). After that, it is the low frequency alias of the upper frame.
The filtered signal can subsequently be reconstructed, by interpolation algorithms, without significant additional distortion. Most sampled signals are not simply stored and reconstructed. But the fidelity of a theoretical reconstruction (via the Whittaker–Shannon interpolation formula) is a customary measure of the effectiveness of sampling.
The first written use of the terms "alias" and "aliasing" in signal processing appears to be in a 1949 unpublished Bell Laboratories technical memorandum by John Tukey and Richard Hamming. That paper includes an example of frequency aliasing dating back to 1922. The first published use of the term "aliasing" in this context is due to Blackman and Tukey in 1958. In their preface to the Dover reprint of this paper, they point out that the idea of aliasing had been illustrated graphically by Stumpf 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. Gwilym Jenkins and Maurice Priestley credit Tukey with introducing it in this context, though an analogous concept of aliasing had been introduced a few years earlier in fractional factorial designs. While Tukey did significant work in factorial experiments and was certainly aware of aliasing in fractional designs, it cannot be determined whether his use of "aliasing" in signal processing was consciously inspired by such designs.
Spatial aliasing, particular of angular frequency, can occur when reproducing a light field or sound field with discrete elements, as in 3D displays or wave field synthesis of sound.
This aliasing is visible in images such as posters with lenticular printing: if they have low angular resolution, then as one moves past them, say from left-to-right, the 2D image does not initially change (so it appears to move left), then as one moves to the next angular image, the image suddenly changes (so it jumps right) – and the frequency and amplitude of this side-to-side movement corresponds to the angular resolution of the image (and, for frequency, the speed of the viewer's lateral movement), which is the angular aliasing of the 4D light field.
The lack of parallax on viewer movement in 2D images and in 3-D film produced by Stereoscopy 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).
The aliasing distortion in the lower frequencies is increasingly obvious with higher fundamental frequencies, and while the bandlimited sawtooth is still clear at 1760 Hz, the aliased sawtooth is degraded and harsh with a buzzing audible at frequencies lower than the fundamental.
Bandlimited functions
Bandpass signals
Sampling sinusoidal functions
\sin(2\pi (f+Nf_{\rm s})t + \phi) = \left\{ \begin{array}{ll}
+\sin(2\pi (f+Nf_{\rm s})t + \phi),
& f+Nf_{\rm s} \ge 0 \\
-\sin(2\pi |f+Nf_{\rm s}|t - \phi),
& f+Nf_{\rm s} < 0 \\
\end{array} \right.
Folding
Complex sinusoids
Sample frequency
Historical usage
Angular aliasing
More examples
Audio example
Direction finding
See also
Further reading
External links
|
|