Defines objects related to visible spectrum volume computations.
See also
Returns if given CIE XYZ tristimulus values are within visible spectrum volume / given colour matching functions volume.
Parameters: |
|
---|---|
Returns: | Is within visible spectrum. |
Return type: | bool |
Notes
Examples
>>> import numpy as np
>>> is_within_visible_spectrum(np.array([0.3205, 0.4131, 0.51]))
array(True, dtype=bool)
>>> a = np.array([[0.3205, 0.4131, 0.51],
... [-0.0005, 0.0031, 0.001]])
>>> is_within_visible_spectrum(a)
array([ True, False], dtype=bool)