Lanczosinterpolation
Lanczos interpolation, also called Lanczos resampling, is a resampling method used to estimate signal values at new points, with widespread application in image upsampling and downsampling. It is based on a windowed sinc function and belongs to the family of Lanczos resampling techniques. The kernel is obtained by truncating the ideal sinc low-pass filter to a finite window, controlled by a parameter a. In 1D, the Lanczos kernel is L(x) = sinc(x) · sinc(x / a) for |x| ≤ a and zero otherwise, where sinc(t) = sin(πt)/(πt). In two dimensions, the filter is applied separably along horizontal and vertical axes.
To interpolate a value at position u, one computes a weighted sum of nearby samples f(k) with
Lanczos interpolation tends to preserve details better than simple methods such as nearest-neighbor or bilinear interpolation