[argyllcms] cctiff output colorspace and the consistency of appearance

  • From: Nic Nilov <nightnic@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 28 Apr 2022 21:36:50 +0300

Hello,

I've been trying to create a simple camera calibration profile and more or less 
succeeded (profcheck reports errors max. = 5.159180, avg. = 2.285364, RMS = 
2.613159).

I'm now trying to apply this profile to an image of the CC24 target (the same 
the profile is derived from) and am observing some inconsistencies I'd like to 
find an explanation for.

When I do it via this cctiff command:

cctiff -v -ia chart-xyz.icc chart-xyz.tiff chart-xyz_corrected.tiff

the result is looking very nice. Notably, the middle gray patch measures L* 50% 
with near zero color deviation. The resulting tiff has CIELab encoding, and 
opens as such in Photoshop, so it needs a conversion to an RGB colorspace 
before further processing. This concerns me as LAB has some encoding issues 
which may be relevant even with 16bit images. I would prefer the cctiff output 
to be in an RGB colorspace.

So, when I specify the -e option to embed the ICC profile like this:

cctiff -v -ia -e chart-xyz.icc chart-xyz.tiff chart-xyz_corrected.tiff

exactly that happens. The output tiff now has RGB encoding with the profile 
embedded.

I open this file in Photoshop using the embedded profile, at which point the 
image looks significantly darker, the middle gray patch measures L* 35.

I then convert the image to ProPhotoRGB colorspace using the Absolute 
Colorimetric intent (which is the same as cctiff -ia does), but the image is 
still darker than the CIELab version. The middle gray patch now measures L* 45.

If, instead of using cctiff, I open the input chart-xyz.tiff file in Photoshop 
directly, assign the same ICC profile and then convert to ProPhotoRGB with 
Abs.Col., I get exactly the same looking image as with the previous step 
(cctiff -e).


The main question is why when the image is in an RGB colorspace the look is 
darker?
The second one is does the use of CIELab as the output encoding present an 
image quality concern (primarily due to quantization with the resulting banding 
and gamut reduction) when the first step of the post-processing in the 
Photoshop has to be the Lab to RGB conversion?

Thank you,
Nic Nilov.

Other related posts: