Helper function for averageInterpolation on RGB(A) data. Light in RGB data is logarithmically weighted (gamma corrected), so we need to expand each component by n^2 to get the correct weight for each component.
Point to interpolate
Reference data points
Helper function for averageInterpolation on RGB(A) data. Light in RGB data is logarithmically weighted (gamma corrected), so we need to expand each component by n^2 to get the correct weight for each component.