Lanczos resampling
From Wikipedia, the free encyclopedia
Lanczos resampling is a multivariate interpolation method used to make digital images larger or smaller by resampling them. That is to say, the final values are a weighted sum of the original values (based on relative position to the original image) where the weighting is given by the Lanczos weighted sinc function.
Lanczos uses a windowed product of sinc functions as a convolution kernel for image resampling. In one dimension, its formula is given by:
.
The Lanczos weighted sinc function is theoretically a good image resampling kernel. However, in blind user tests of commonly used resampling kernels, Lanczos was rated below all common bicubic kernels, and just barely above bilinear interpolation.
The filter is named after Cornelius Lanczos, because he showed how to use Fourier series and Chebyshev polynomials for various problems where it was not used before.
The Lanczos resampling kernel is known to be used in:
- VirtualDub
- IrfanView
- AviSynth
- FFDShow
- ImageMagick
- MPlayer
- Mac OS X - Quartz (graphics layer) and vImage
- Avidemux
- Lightwave
- GIMP (2.3 and above)
- Panorama Tools (as sinc interpolation)
- Mental Ray
- XnView
- Google Picasa
- Dr. Divx 2.0 OSS