News for hackers. Stuff that matters.
Re:Lánczos Interpolation Explained (2022) by zozbot234 on Saturday October 11, 2025 @07:34AM (#45548316)
The claim that the best interpolation kernel for 2d images is just a product of two Lanczos kernels in the X and Y directions seems wrong to me. Rather, there is a proper 2D analog to the sinc function known as the jinc, or "Sombrero" function https://en.wikipedia.org/wiki/Sombrero_function . (This function is mathematically related to the "Airy" ringing patterns found in the optics of lenses.) Resampling with a jinc-based circular-window kernel should show a far lower intensity of ringing artifacts compared to the simple composition of two 1D Lanczos filters.

On a different point, when approximating a "brickwall" frequency spectrum an 'equiripple' pattern is generally considered desirable, and this will lead to a different kernel than the Lanczos approach does.

Re:Lánczos Interpolation Explained (2022) by rostayob on Saturday October 11, 2025 @10:07AM (#45549280)
(I'm the author)

I don't really claim that Lanczos interpolation as presented is the "best" 2D interpolation there is. It is definitely popular though, and I couldn't find a source explaining how it is derived, so I thought it'd be an interesting topic for a blog post.

Re:Lánczos Interpolation Explained (2022) by petermcneeley on Saturday October 11, 2025 @06:07PM (#45553095)
Thank you for this article. Are the graphs images? and how were they generated?