Skip to content

Is there something wrong in the "colour.plotting.plot_RGB_chromaticities_in_chromaticity_diagram" definition? #734

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

You must be logged in to vote

Hi @hminle,

It might seem odd indeed but this is correct: Given a RGB array encoded in a given colourspace, e.g. ProPhoto RGB, we want to see its chromaticity coordinates as encoded by that colourspace. The conversion from RGB to XYZ needs to be done in a way where no whitepoint change happens, this is to say that the whitepoint for plotting the chromaticities should be that of the RGB array, i.e. D50 for ProPhoto RGB. By passing the given colourspace whitepoint two times to the colour.RGB_to_XYZ definition, we are ensuring that this is the case and that no chromatic adaptation occurs.

Note that the displayed colours, however, ARE converted to the plotting colourspace, i.e. sRGB by defaul…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #555 on January 16, 2021 22:55.