Anti-aliasing filter
From Wikipedia, the free encyclopedia
An anti-aliasing filter is a filter used before a signal sampler, to restrict the bandwidth of a signal to approximately satisfy the sampling theorem. Since the theorem states that unambiguous interpretation of the signal from its samples is possible only when the power of frequencies outside the Nyquist bandwidth is zero, the anti-aliasing filter would have to have perfect stop-band rejection to completely satisfy the theorem. Every realizable anti-aliasing filter will permit some aliasing to occur; the amount of aliasing that does occur depends on how good the filter is.
Anti-aliasing filters are commonly used at the input of digital signal processing systems, for example in sound digitization systems; similar filters are used as reconstruction filters at the output of such systems, for example in music players. In the latter case, the filter is to prevent aliasing in the conversion of samples back to a continuous signal, where again perfect stop-band rejection would be required to guarantee zero aliasing.
The theoretical impossibility of realizing perfect filters is not much an impediment in practice, though practical considerations do lead to system design choices such as oversampling to make it easier to realize "good enough" anti-aliasing filters.
Contents |
[edit] Optical anti-aliasing filter
In the case of optical image sampling, as by image sensors in digital cameras, the anti-aliasing filter is also known as an optical lowpass filter or blur filter or AA filter. The mathematics of sampling in two spatial dimensions is similar to the mathematics of time-domain sampling, but the filter implementation technologies are different. The typical implementation in digital cameras is two layers of birefringent material such as lithium niobate, which spreads each optical point into a cluster of four points.[1]
The choice of spot separation for such a filter involves a tradeoff among sharpness, aliasing, and fill factor. In a monochrome or three-CCD or Foveon X3 camera, the fill factor alone, if near 100% effective with microlenses, can provide a significant anti-aliasing effect, while in color filter array (CFA, e.g. Bayer filter) cameras, an additional filter is generally needed to reduce aliasing to an acceptable level.[2]
[edit] Applicability of oversampling
A technique known as oversampling is commonly used in audio conversion, especially audio output. The idea is to use a higher intermediate digital sample rate, so that a nearly-ideal digital filter can sharply cut off aliasing near the original low Nyquist frequency, while a much simpler analog filter can stop frequencies above the new higher Nyquist frequency.
The purpose of oversampling is to relax the requirements on the anti-aliasing filter, or to further reduce the aliasing. Since the final anti-aliasing filter is analog, oversampling allows for the filter to be cheaper because the requirements are not as stringent, and also allows the anti-aliasing filter to have a smoother frequency response, and thus a less complex phase response.
On input, an initial analog anti-aliasing filter is relaxed, the signal is sampled at a high rate, and then downsampled using a nearly ideal digital anti-aliasing filter.
[edit] Frequency spectrum shape
Most often, an anti-aliasing filter is a low-pass filter. However, this is not a requirement. The Shannon-Nyquist sampling theorem states that the sampling rate must be greater than twice the bandwidth, not maximum frequency, of the signal. For the types of signals that are bandwidth limited, but not centered at zero, a band-pass filter would be used as an anti-aliasing filter. For example, this could be done with a single-sideband modulated or frequency modulated signal. If one desired to sample an FM radio broadcast on channel 200, then an appropriate anti-alias filter would be centered on 87.9 MHz with 200 kHz bandwidth (or pass-band of 87.8 MHz to 88.0 MHz), and the sampling rate would be no less than 400 kHz. (In this case not the audio of the broadcast is sampled, but the actual transmission signal itself, which is not very common.).*
[edit] Signal overload
It is very important to avoid input signal overload when using an anti-alising filter. If the signal is strong enough, it can cause clipping at the analog-to-digital converter, even after filtering. Because the signal distortion created by the clipping of the filtered waveform occurs after the anti-aliasing filter, it will have components spread throughout the frequency spectrum, including those out-of-band parts of the spectrum which cause aliasing. In digital audio, the resulting aliased distorted signal of "digital clipping" has a characteristic sound that can be easily recognised.
[edit] References
- ^ Adrian Davies and Phil Fennessy (2001). Digital imaging for photographers, Fourth edition, Focal Press. ISBN 0240515900.
- ^ Brian W. Keelan (2004). Handbook of Image Quality: Characterization and Prediction. Marcel–Dekker. ISBN ISBN 0824707702.
[edit] See also
|