colour.characterisation.polynomial_expansion_Finlayson2015

colour.characterisation.polynomial_expansion_Finlayson2015(RGB, degree=1, root_polynomial_expansion=True)[source]

Performs polynomial expansion of given RGB colourspace array using Finlayson et al. (2015) method.

Parameters
  • RGB (array_like) – RGB colourspace array to expand.

  • degree (int, optional) – Expanded polynomial degree.

  • root_polynomial_expansion (bool) – Whether to use the root-polynomials set for the expansion.

Returns

Expanded RGB colourspace array.

Return type

ndarray

References

[FMH15]

Examples

>>> RGB = np.array([0.17224810, 0.09170660, 0.06416938])
>>> polynomial_expansion_Finlayson2015(RGB, degree=2)  
array([ 0.1722481...,  0.0917066...,  0.0641693...,  0.1256832...,  0.0767121...,
        0.1051335...])