colour.RGB_colourspace_limits#

colour.RGB_colourspace_limits(colourspace: RGB_Colourspace) NDArrayFloat[source]#

Compute given RGB colourspace volume limits in CIE L*a*b* colourspace.

Parameters:

colourspace (RGB_Colourspace) – RGB colourspace to compute the volume of.

Returns:

RGB colourspace volume limits.

Return type:

numpy.ndarray

Notes

The limits are computed for the given RGB colourspace illuminant. This is important to account for, if the intent is to compare various RGB colourspaces together. In this instance, they must be chromatically adapted to the same illuminant before-hand. See colour.RGB_Colourspace.chromatically_adapt() method for more information.

Examples

>>> from colour.models import RGB_COLOURSPACE_sRGB as sRGB
>>> RGB_colourspace_limits(sRGB)  
array([[   0.       ...,  100.       ...],
       [ -86.182855 ...,   98.2563272...],
       [-107.8503557...,   94.4894974...]])