Skip to content

Why does a conversion using the "colour.RGB_to_RGB" definition with the same input and output colourspaces changes the input value? #1116

Answered by KelSolaar
MrLixm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MrLixm,

As crazy as it might sound, this is "by-design", some standards, e.g. IEC 61966-2-1:1999, define the RGB to XYZ and XYZ to RGB matrices rounded at 4 digits, thus it cannot roundtrip properly. There is actually a long explanation at the top of the RGB_Colourspace class: https://colour.readthedocs.io/en/develop/generated/colour.RGB_Colourspace.html#colour.RGB_Colourspace

See also #282 for some discussion around that, there might be some more in the depth of Slack.

Cheers,

Thomas

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KelSolaar
Comment options

@MrLixm
Comment options

@KelSolaar
Comment options

Answer selected by MrLixm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1115 on March 05, 2023 17:59.