xyz2rgb
-
skimage.color.xyz2rgb(xyz)
[source] -
XYZ to RGB color space conversion.
Parameters: xyz : array_like
The image in XYZ format, in a 3-D array of shape
(.., .., 3)
.Returns: out : ndarray
The image in RGB format, in a 3-D array of shape
(.., .., 3)
.Raises: ValueError
If
xyz
is not a 3-D array of shape(.., .., 3)
.Notes
The CIE XYZ color space is derived from the CIE RGB color space. Note however that this function converts to sRGB.
References
[R60] http://en.wikipedia.org/wiki/CIE_1931_color_space Examples
>>> from skimage import data >>> from skimage.color import rgb2xyz, xyz2rgb >>> img = data.astronaut() >>> img_xyz = rgb2xyz(img) >>> img_rgb = xyz2rgb(img_xyz)
Please login to continue.