xyz2lab
skimage.color.xyz2lab(xyz, illuminant='D65', observer='2') [source]
XYZ to CIE-LAB color space conversion. Parameters:
xyz : array_like The image in XYZ format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). illuminant : {“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional The name of the illuminant (the function is NOT case sensitive). observer : {“2”, “10”}, optional The aperture angle of the observer. Returns:
out : ndarray The image in CIE-LAB format, in a 3- or 4-D array