rgb2xyz
skimage.color.rgb2xyz(rgb) [source]
RGB to XYZ color space conversion. Parameters:
rgb : array_like The image in RGB format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Returns:
out : ndarray The image in XYZ format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Raises:
ValueError If rgb is not a 3- or 4-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 from sRGB. Ref