frudawski

ciexy2uv

The ciexy2uv function transforms CIE 1931 chromaticity coordinates x and y to CIE 1960 chromaticity coordinates u and v, using the following transformation:

u = \frac{4x}{-2x + 12y + 3}\\

v = \frac{6y}{-2x + 12y + 3}

Any errors in the data set or in results generated with the Lighting Toolbox are not in the liability of the CIE nor me, see licence.

Usage:

[u,v] = ciexy2uv(x,y)

Where:

ParameterDescription
u and vAre the returned CIE 1960 u and v chromaticity coordinates.
x and y Are the given CIE 1931 x and y chromaticity coordinates.

It is possible to transform several chromaticity coordinates in one function call, using a 1\times n or n\times 1 vector as input.

Examples

Transform CIE 1931 chromaticity coordinates x and y to CIE 1960 chromaticity coordinates u and v and back:

x = 0.3451;
y = 0.2973;
[u,v] = ciexy2uv(x,y)
[x,y] = cieuv2xy(u,v)

See also: cieuv2xy

Result:

u = 0.2349
v = 0.3035

x = 0.3451
y = 0.2973

Transform several CIE 1931 chromaticity coordinates x and y to CIE 1960 chromaticity coordinates u and v:

x = [0.3124 0.2934 0.3654];
y = [0.3123 0.3421 0.2982];
[u,v] = ciexy2uv(x,y)

Result:

u =

   0.2041   0.1800   0.2499

v =

   0.3060   0.3149   0.3060

Determine and plot the whitpoint of standard illumimant ‘D65’ in the CIE 1960 u,v chromiticity:

lam = 360:830;
spec = ciespec(lam,'D65');
xyz = ciespec2xyz(lam,spec);
[u,v] = ciexy2uv(xyz(1),xyz(2))
plotcieuv(u,v)

See also: ciespec, ciespec2xyz, plotcieuv, ciespec2uvw

Result:

u = 0.1978
v = 0.3122

Reference

CIE 15:2018: Colorimetry, 4th Edition. Commission International de l’Éclairage (CIE), Vienna Austria, 2018, ISBN: 978-3-902842-13-8 , (DOI: 10.25039/TR.015.2018).

David Lewis MacAdam: Projective Transformations of I. C. I. Color Specifications. In: Journal of the Optical Society of America, vol. 27, no. 8, pp. 294-299, 1937, (DOI: 10.1364/JOSA.27.000294).

Leave a comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know and accept that comments may be saved and published after review.