Convert color profiles

I have a color conversion project in C ++ where the idea is to use CIELAB as the transition between RGB and all the others (CMY; CMYK; HSV; HSL; ...). But I have one big big problem. I searched everywhere and I cannot find any formula or description of how I could convert CIELAB to others (CMY; CMYK; HSV; HSL; ...), only I got what I found here: http: / /www.easyrgb.com/index.php?X=MATH&H=14#text14 . Can someone please help me with a formula or with an idea how to get to them? Thank you so much. Regards, magic :)

+4
source share
1 answer

Color conversion using mathematical formulas gives very poor results without serious application. Color systems are too complex to capture in simple closed mathematical formulas, not to mention linear formulas.

Good results can only be achieved using color profile files. And the conversion basically causes interpolation between the samples stored in these files.

Take a look at Little CMS . He probably does everything you need. Or, if your software runs on Windows, you can use the built-in Windows Color System to convert.

+1
source

Source: https://habr.com/ru/post/1387618/


All Articles