Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.8k stars 316 forks source link

L*a*b CC curve histogram scaled incorrectly #6519

Closed rebio closed 1 year ago

rebio commented 2 years ago

Short description The vertical indicator line is in the wrong spot

Steps to reproduce

  1. Create an image with the Gradient black to blue to white. Tested with tiff. Not allowed to upload it here. blue gradient
  2. Open image and look at the vertical slider in any of the chromaticity based curve editors

Observed behavior The vertical indicator line only goes from 0 to grid line 9 in the most saturated part. CC  curve max saturation

Expected behavior The vertical indicator line goes from 0 to 10 (assuming that the grid is 10% steps, left is 0% aka 0, right is 100% aka 10) The image shows the most saturated part of the base image with L*a*b chroma at +12 CC  curve max saturation with chroma +12

Additional information RawTherapee is on the latest dev build

According to the Navigator the values for saturation, blue channel of RGB as well as the b channel are maxed out. This can not be more saturated unless it displays information outside the colour space. Why would it though? The L curve has not 10% reserved for out areas out of the luminance range.

This is the "chroma drop". Numbers refer to grid lines. CC  curve chroma drop

Image with chroma drop at 9: default gradient with chroma drop at 9

Image with L*a*b chroma +12 and chroma drop at 9: default gradient with with chroma +12 and chroma drop at 9

Image with L*a*b chroma +2 and chroma drop at 8: The CC curve of this image is the one above. Even more parts of the image should be effected by the position of the vertical indicator, they are not. default gradient with with chroma +2 and chroma drop at 8

Lawrence37 commented 2 years ago

Chroma is not saturation. There's no such thing as 100% chroma in CIELAB, so the choice of maximum chroma in the histogram is somewhat arbitrary.

rebio commented 2 years ago

Even if there is no 10/10 chroma, what about that the image with with Lab chroma +12 and chroma drop at 9? The vertical line says the middle part (first image under Additional information) is in the area that should be effected yet it is not (see image under headline Image with L*a*b chroma +12 and chroma drop at 9)

Lawrence37 commented 2 years ago

I see what you mean. Sorry, I misinterpreted the gradient images. The histogram and curve values are not aligned correctly.