How to get RGB values from x,y coordinates

41 ビュー (過去 30 日間)
Paula Agudelo
Paula Agudelo 2018 年 2 月 5 日
コメント済み: Rik 2020 年 11 月 23 日
I have the x,y coordinates of different colors (they are not coordinates of an image, just the hue coordinates) in CIE color space and I want to convert them into RGB values. i have for example x= 0.5732 and y= 0.2463. How can I convert these coordinates to RGB?

採用された回答

Rik
Rik 2018 年 2 月 5 日
編集済み: Rik 2018 年 2 月 5 日
https://www.mathworks.com/help/images/ref/xyz2rgb.html (z is just to complete the triplet, in general z=1-x-y)
Note: Make sure that you pick the correct whitepoint. Generally there will not be much difference between D65, A and an ideal 6500K black body radiator, but sometimes it matters for your result.
  2 件のコメント
Sanam Nisar
Sanam Nisar 2020 年 11 月 23 日
xyz2rgb accept XYZ not xyz. If I understand well x = 0.5732 and y= 0.2463 are chromaticity values while z = 1-x-y can also be calculate but the values are xyz not XYZ. How to convert xyz to XYZ that can be inputted to this function?
Rik
Rik 2020 年 11 月 23 日
Is that yet another color space? I was not aware of that, so I used variable names in lowercase. Can you give a link describing the xyz color space?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by