Helper function for lanczosInterpolation on RGB(A) data. Light in RGB data is logarithmically weighted, so we need to expand each component by n^2 to get the correct weight for each component.
Point to interpolate
Reference data points
Lanczos kernel radius (default is 2) Recommend to only use 2 or 3.
Helper function for lanczosInterpolation on RGB(A) data. Light in RGB data is logarithmically weighted, so we need to expand each component by n^2 to get the correct weight for each component.