srgb

linearRGB conversion to/from HSL

Does anyone know of a way to get HSL from an linearRGB color (not an sRGB color)? I've seen a lot of sRGB<->HSL conversions, but nothing for linearRGB<->HSL. Not sure if it is fundementally the same conversion with minor tweaks, but I'd appreciate any insight someone may have on this. Linear RGB is not the same as linearizing sRGB (whic...

How to convert sRGB to CIELAb and CIELab to sRGB efficiently?

Hi all! I don't understand how to convert sRGB to CIELab and backward. Help me please. it's desirable in с++ code ...