xyz2rgb input arg

8 ビュー (過去 30 日間)
Loong Yeat Pong
Loong Yeat Pong 2020 年 5 月 18 日
回答済み: Sriram Tadavarty 2020 年 5 月 18 日
Hi, I'm confused about the input arg for xyz2rgb. It says:
RGB = xyz2rgb(XYZ) converts CIE 1931 XYZ values (2° observer) to sRGB values.
Do the XYZ values refer to the tristimulus values or the colour coordinates?

採用された回答

Sriram Tadavarty
Sriram Tadavarty 2020 年 5 月 18 日
Hi Loong,
XYZ is the tristimulus values and not the coordinate system, since the color space is varied from XYZ to RGB.
You can directly provide a XYZ colorspace image of size m-by-n-by-3 and you can convert to RGB image.
To convert RGB to XYZ, use rgb2xyz function.
For more details about different color spaces and usages, look at this page.
Hope this helps.
Regards,
Sriram

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by