Returns if given CIE xyY colourspace matrix is within MacAdam limits of given illuminant.
Parameters: |
|
---|---|
Returns: | Is within MacAdam limits. |
Return type: | bool |
Notes
Examples
>>> is_within_macadam_limits((0.3205, 0.4131, 0.51), 'A')
True
>>> is_within_macadam_limits((0.0005, 0.0031, 0.001), 'A')
False
Computes given RGB colourspace volume limits in Lab colourspace.
Parameters: |
|
---|---|
Returns: | RGB colourspace volume limits. |
Return type: | ndarray |
Examples
>>> from colour import sRGB_COLOURSPACE as sRGB
>>> RGB_colourspace_limits(sRGB)
array([[ 0... , 100... ],
[ -79.2263741..., 94.6657491...],
[-114.7846271..., 96.7135199...]])
Performs given RGB colourspace volume computation using Monte Carlo method and multiprocessing.
Parameters: |
|
---|---|
Returns: | RGB colourspace volume. |
Return type: | float |
Notes
The doctest is assuming that np.random.RandomState() definition will return the same sequence no matter which OS or Python version is used. There is however no formal promise about the prng sequence reproducibility of either Python or *Numpy implementations: Laurent. (2012). Reproducibility of python pseudo-random numbers across systems and versions? Retrieved January 20, 2015, from http://stackoverflow.com/questions/8786084/reproducibility-of-python-pseudo-random-numbers-across-systems-and-versions
Examples
>>> from colour import sRGB_COLOURSPACE as sRGB
>>> prng = np.random.RandomState(2)
>>> processes = 1
>>> RGB_colourspace_volume_MonteCarlo(sRGB, 10e3, random_state=prng, processes=processes)
859...