xyz2luv

xyz2luv

skimage.color.xyz2luv(xyz, illuminant='D65', observer='2') [source]

XYZ to CIE-Luv color space conversion.

Parameters:

xyz : (M, N, [P,] 3) array_like

The 3 or 4 dimensional image in XYZ format. Final dimension denotes channels.

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 : (M, N, [P,] 3) ndarray

The image in CIE-Luv format. Same dimensions as input.

Raises:

ValueError

If xyz is not a 3-D or 4-D array of shape (M, N, [P,] 3).

ValueError

If either the illuminant or the observer angle are not supported or unknown.

Notes

By default XYZ conversion weights use observer=2A. Reference whitepoint for D65 Illuminant, with XYZ tristimulus values of (95.047, 100., 108.883). See function ‘get_xyz_coords’ for a list of supported illuminants.

References

[R58] http://www.easyrgb.com/index.php?X=MATH&H=16#text16
[R59] http://en.wikipedia.org/wiki/CIELUV

Examples

>>> from skimage import data
>>> from skimage.color import rgb2xyz, xyz2luv
>>> img = data.astronaut()
>>> img_xyz = rgb2xyz(img)
>>> img_luv = xyz2luv(img_xyz)
doc_scikit_image
2017-01-12 17:24:10
Comments
Leave a Comment

Please login to continue.