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:
Parameter | Description |
u and v | Are 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