News for hackers. Stuff that matters.
Re:A 100x speedup with unsafe Python by topherclay on Monday May 06, 2024 @11:33PM (#40282099)
Do you mean converting the RGB value to LAB values in the CIELAB color space and doing the interpellation there?

Is there a better way to do it?

Re:A 100x speedup with unsafe Python by CarVac on Tuesday May 07, 2024 @12:16AM (#40282277)
No, you just need to linearize the brightness.
Re:A 100x speedup with unsafe Python by drjasonharrison on Tuesday May 07, 2024 @03:51PM (#40290720)
Typically this is done by using a look-up table to convert the 8-bit gamma encoded intensities to 10-bit (or more) linear intensities. You can use the same look-up table for R, G, and B. Alpha should be linear.