Ogeon / palette

A Rust library for linear color calculations and conversion
Apache License 2.0
749 stars 60 forks source link

Add darktable UCS #357

Open giannissc opened 11 months ago

giannissc commented 11 months ago

Perceptual color space are very useful for image processing and it would be nice to have this as part of palette

https://eng.aurelienpierre.com/2022/06/interpolating-hue-angles/

Ogeon commented 11 months ago

Interesting! So it's specifically made to work well for image processing?

Also, did you mean to link this? https://eng.aurelienpierre.com/2022/02/color-saturation-control-for-the-21th-century/

giannissc commented 11 months ago

Yeah that's the correct link. Basically the darktable UCS is a perceptual color space similar in spirit to CAM16. CAM16 is more suitable for color correction and color adaptation and darktable UCS is more suitable for creative color work (it accounts for the Helmholtz–Kohlrausch effect).

giannissc commented 11 months ago

Interesting! So it's specifically made to work well for image processing?

Yeah exactly so if you want to change the hue,saturation or the brightness of a color it will do so in a perceptually uniform way. As you can guess from the name it is being used internally by darktable to allow for these kind of changes

Ogeon commented 11 months ago

Ok, yeah, that sounds useful and it's nice that there's an official implementation to look at. 🙂 Thanks for pointing it out!