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

Conficker picture Conficker · Oct 12, 2010 · Viewed 9.8k times · Source

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

Answer

Artyom picture Artyom · Oct 12, 2010

Convert from sRGB to RGB by applying inverse gamma, convert RGB to XYZ using 3x3 matrix, convert XYZ to Lab using standard formula and D6500 white point

References:

The rest... you can do on your own :-)