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)  # doctest: +ELLIPSIS
array([ 0.1722481...,  0.0917066...,  0.06416938...,  0.0078981...,  0.0029423...,
        0.0055265...])