Main Content
xyz2rgb
Convert CIE 1931 XYZ to RGB
Description
Examples
Input Arguments
Output Arguments
Tips
If you specify the output RGB color space as
"linear-rgb"
, then the output values are linearized sRGB values. If instead you want the output color space to be linearized Adobe RGB (1998), then you can use thergb2lin
function.For example, to convert CIE 1931 XYZ image
XYZ
to linearized Adobe RGB (1998) color space, perform the conversion in two steps:RGBadobe = xyz2rgb(XYZ,"ColorSpace","adobe-rgb-1998"); RGBlinadobe = rgb2lin(RGBadobe,"ColorSpace","adobe-rgb-1998");