Defines objects for reflectance recovery using Smits (1999) method.
References
[1] | Smits, B. (1999). An RGB-to-Spectrum Conversion for Reflectances. Journal of Graphics Tools, 4(4), 11–22. doi:10.1080/10867651.1999.10487511 |
Current Smits (1999) method implementation colourspace primaries.
SMITS1999_PRIMARIES : ndarray, (3, 2)
Current Smits (1999) method implementation colourspace whitepoint.
SMITS1999_WHITEPOINT : tuple
Current Smits (1999) method implementation RGB colourspace to CIE XYZ tristimulus values matrix.
SMITS1999_XYZ_TO_RGB_MATRIX : array_like, (3, 3)
Convenient object to convert from CIE XYZ tristimulus values to RGB colourspace in conditions required by the current Smits (1999) method implementation.
Parameters: |
|
---|---|
Returns: | RGB colour array. |
Return type: | ndarray |
Notes
Examples
>>> XYZ = np.array([0.07049534, 0.10080000, 0.09558313])
>>> XYZ_to_RGB_Smits1999(XYZ)
array([ 0.0214496..., 0.1315460..., 0.0928760...])
Recovers the spectral power distribution of given RGB colourspace array using Smits (1999) method.
Parameters: | RGB (array_like, (3,)) – RGB colourspace array. |
---|---|
Returns: | Recovered spectral power distribution. |
Return type: | SpectralPowerDistribution |
Examples
>>> RGB = np.array([0.02144962, 0.13154603, 0.09287601])
>>> RGB_to_spectral_Smits1999(RGB)
<...SpectralPowerDistribution object at 0x...>