-
I asked recently here https://discourse.julialang.org/t/function-that-converts-rgb-color-to-cam02-ucs-coordinates/65822 if a conversion RGB->CAM02-UCS, and conversely, is available in some Julia package, but the answer was negative.
There is no direct transformation between the two color-spaces. The conversion is performed via a sequence of composed transformations. -
The non-linear lightness resulted after gamma-correction of RGB color coordinates can be uniformized in just a few lines of code
https://github.com/liamedeiros/ehtplot/blob/master/ehtplot/color/cmath.py#L84.
The result for the plasma example is posted below the first two previous images to compare the effect of uniformization. -
I don’t know if there is the posibility to call from Julia functions from
ehtplot
, as long as it can be installed only via setup.py.