- Upsampling
Upsampling is the process of increasing the sampling rate of a signal. For instance, upsampling raster images such as photographs means increasing the resolution of the image.
The upsampling factor (commonly denoted by "L") is usually an integer or a rational fraction greater than unity. This factor multiplies the
sampling rate or, equivalently, divides the sampling period. For example, ifcompact disc audio is upsampled by a factor of 5/4 then the resulting sampling rate goes from 44,100 Hz to 55,125 Hz.ampling theorem satisfaction
The upsampled signal satisfies the
Nyquist–Shannon sampling theorem if the original signal does.For an aesthetically pleasing upsample, an
interpolation filter is required; in both upsampling anddownsampling , such alow-pass filter implementsanti-aliasing .Upsampling process
Consider a
discrete signal f(k) on a radian frequencydigital frequency range.Upsampling by integer factor
Let "L" denote the upsampling factor.
#Add "L-1" zeros between each sample in f(k). Or, equivalently define g(k) = left { egin{matrix} fleft(frac{k}{L} ight) & mbox{if } frac{k}{L} mbox{ is an integer} \ 0 & mbox{otherwise} end{matrix} ight.
#Filter with a low-pass filter which, theoretically, should be thesinc filter with frequency cut off at frac{pi}{L}The second step calls for the use of a perfect low-pass filter, which is not implementable.When choosing a realizable low-pass filter this will have to be considered and it will have
aliasing effects. These aliases can be removed to a reasonable extent by a finite impulse response low pass filter. The presence of zeros in the sequence which is passed through the filter can be used to reduce the complexity of the filter implementation. The original filter can be split to L subfilters and the output of each of these subfilters is sequentially tapped to obtain the filtered output sequence.Upsampling by rational fraction
Let "L/M" denote the upsampling factor.
#Upsample by a factor of "L"
#Downsample by a factor of "M"Not that upsampling requires an interpolation filter after increasing the data rate and that downsampling requires a filter before decimation.These two filters can be combined into a single filter.Since both interpolation and anti-aliasing filters are low-pass filters, the filter with the smallest bandwidth is more restrictive and, thus, can be used in place of both filters.Since the rational fraction "L/M" is greater than unity when M < L and the single low-pass filter should have cutoff at 1/{2L} cycles per output sample, the
Nyquist frequency of the input sample rate.ee also
*
Downsampling
*Oversampling
*Sampling (information theory)
*Signal (information theory)
*Data conversion
*Interpolation References
*
* [http://ccrma.stanford.edu/~jos/resample/resample.html Digital Audio Resampling Home Page] (discusses a technique for bandlimited interpolation)
* Matlab example of using polyphase filters for interpolation [http://www.dsplog.com/2007/05/12/polyphase-filters-for-interpolation/]
Wikimedia Foundation. 2010.