News for hackers. Stuff that matters.
Re:Issues with Color Spaces and Perceptual Brightness by weinzierl on Friday January 17, 2025 @03:20AM (#42735233)
"Unfortunately, I haven’t been able to find any perceptually uniform color spaces that seem to include these transformations in the final output space. If you’re aware of one, I would love to know."

OSA-UCS takes the Helmholtz-Kohlrausch effect into consideration.

Re:Issues with Color Spaces and Perceptual Brightness by cccbbbaaa on Friday January 17, 2025 @03:43AM (#42735354)
Re:Issues with Color Spaces and Perceptual Brightness by balou23 on Friday January 17, 2025 @05:37AM (#42736113)
Someone else was mentioning Oklab color space, and I was wondering what the difference was to darktable UCS.

TL;DR: Oklab is pretty simple, but is already pretty nice as a perceptually uniform color space. Darktable UCS takes Oklab and tries to reduce the residual error.

Feel free to correct me if I got anything wrong

Re:Issues with Color Spaces and Perceptual Brightness by weinzierl on Friday January 17, 2025 @07:29AM (#42736826)
Not sure. The article is long and I only skimmed it, but what stood out to me were the following paragraphs:

"After trying to fix Oklab for a dozen of hours, it appeared that the numerical issues it raises are grounded into design constraints we don’t need for the current task. And so do most of the other perceptual spaces.

[..]

So we could fit an Lch model directly from Munsell hue-value-chroma dataset, without going through LMS space and without even tilting the lightness plane. Doing so, we will not try to model the physiology of vision, but approach the problem as a geometric space distortion where the Munsell hues and the saturations (as a ratio of chromas / values) can be predicted by a 1D mapping from the hues, chromas and lightnesses of forming the principal dimensions of the model.

This model will need to be invertible. We will try to fit brightness data to derivate correlates of perceptual brightness accounting for the Helmholtz-Kohlrausch effect. Using the brightness and saturation correlates, we will rewrite our image saturation algorithm in terms of perceptually-even operators."

They obviously took a lot from Oklab but it seems to me they did more than just modifying it to reduce the residual error. But again, I just skimmed and I can be completly wrong.

Re:Issues with Color Spaces and Perceptual Brightness by mattdesl on Friday January 17, 2025 @12:38PM (#42740958)
Although the article is intimidating, the implementation appears pretty simple and flexible. Has anyone tried using this either in the Darktable app or in their own libraries? I might like to try porting it to JS to compare it for web based color picker GUIs.
Re:Issues with Color Spaces and Perceptual Brightness by cccbbbaaa on Friday January 17, 2025 @02:33PM (#42742325)
This colorspace is used internally by the color balance RGB module of Darktable (and Ansel).
Re:Issues with Color Spaces and Perceptual Brightness by Kleptine on Friday January 17, 2025 @07:32PM (#42744694)
This is an incredible reference, thanks.