colour.characterisation.whitepoint_preserving_matrix#
- colour.characterisation.whitepoint_preserving_matrix(M: ArrayLike, RGB_w: ArrayLike = (1, 1, 1)) NDArrayFloat[source]#
Normalise the specified matrix \(M\) to preserve the white point \(RGB_w\).
- Parameters:
- Returns:
Normalised matrix \(M\).
- Return type:
Examples
>>> M = np.reshape(np.arange(9), (3, 3)) >>> whitepoint_preserving_matrix(M) array([[ 0., 1., 0.], [ 3., 4., -6.], [ 6., 7., -12.]])