Are the reference swatch colours in the example notebook linear? #59
tobias-kirschstein
started this conversation in
General
Replies: 2 comments 4 replies
-
The following code from the notebook and specifically the REFERENCE_SWATCHES = colour.XYZ_to_RGB(
colour.xyY_to_XYZ(list(REFERENCE_COLOUR_CHECKER.data.values())),
REFERENCE_COLOUR_CHECKER.illuminant, D65,
colour.RGB_COLOURSPACES['sRGB'].matrix_XYZ_to_RGB) produce linear values, thus Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi thanks for the quick reply. Why does Best, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
In the example notebook, the images are transformed to linear RGB via
colour.cctf_decoding()
. This means that the colors of the detectedSWATCHES
are also given in linear RGB coordinates, right?However, the
REFERENCE_SWATCHES
are loaded assRGB
color values and, as far as I am concerned, are not further converted to linear RGB. In the subsequent color correctioncolour.colour_correction(COLOUR_CHECKER_IMAGES[i], swatches, REFERENCE_SWATCHES)
the original image is transformed such that the detectedswatches
match theREFERENCE_SWATCHES
, but isn't this nonsensical as the values are given wrt different color spaces (linear RGB vs sRGB)? Or am I missing something?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions