[Lcms-user] XYZ to Lab conversion issue
An ICC-based CMM for color management
Brought to you by:
mm2
From: Steve U. <up...@ch...> - 2025-04-26 22:32:59
|
when I call cmsXYZ2Lab with the white point set to NULL and XYZ = 0.06113, 0.0634, 0.05231 I get the expected L* value of around 30.255 - no problem But when I set up a transform from the 'stock, D50' XYZ profile to the stock Lab profile, I get the L* value around 40 I messed around with a ton of different methods of encoding the XYZ values and decoding the Lab values as well a different profile versions and get the same wrong number (ish) Somewhere along the way I realized the L* = 40 number, converted to XYZ basically doubles the original XYZ values. Sure enough, when I divide the original XYZ values by 2, they convert to the value I'm expecting - though I think this is just a dawdle... Anyway, what might I be doing wrong? Also, can anyone point me in the direction of how encodings like type_XYZ_16 are performed? I've having trouble tracking it down. |