colour.primaries_whitepoint

colour.primaries_whitepoint(npm)[source]

Computes the primaries and whitepoint \(xy\) chromaticity coordinates using given Normalised Primary Matrix (NPM).

Parameters

npm (array_like, (3, 3)) – Normalised Primary Matrix.

Returns

Primaries and whitepoint \(xy\) chromaticity coordinates.

Return type

tuple

References

[Tri15]

Examples

>>> npm = np.array([[9.52552396e-01, 0.00000000e+00, 9.36786317e-05],
...                 [3.43966450e-01, 7.28166097e-01, -7.21325464e-02],
...                 [0.00000000e+00, 0.00000000e+00, 1.00882518e+00]])
>>> p, w = primaries_whitepoint(npm)
>>> p  
array([[  7.3470000...e-01,   2.6530000...e-01],
       [  0.0000000...e+00,   1.0000000...e+00],
       [  1.0000000...e-04,  -7.7000000...e-02]])
>>> w 
array([ 0.32168,  0.33767])