rgb2lab

rgb2lab

skimage.color.rgb2lab(rgb) [source]

RGB to lab 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 Lab 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

This function uses rgb2xyz and xyz2lab.

doc_scikit_image
2017-01-12 17:23:16
Comments
Leave a Comment

Please login to continue.