Colorimetry#
Spectral Data Structure#
colour
|
Define the base object for spectral distribution shape. |
|
Define the spectral distribution: the base object for spectral computations. |
|
Define the multi-spectral distributions: the base object for multi spectral computations. |
(360, 780, 1). |
|
(360, 780, 1). |
Ancillary Objects
colour.colorimetry
|
Reshape given spectral distribution with given spectral shape. |
|
Reshape given multi-spectral distributions with given spectral shape. |
|
Convert given spectral and multi-spectral distributions to a list of spectral distributions. |
|
Convert given spectral and multi-spectral distributions to multi-spectral distributions. |
Spectral Data Generation#
colour
|
CIE Standard Illuminant A is intended to represent typical, domestic, tungsten-filament lighting. |
|
Return the spectral distribution of given CIE Illuminant D Series using given CIE xy chromaticity coordinates. |
|
Return the spectral distribution of the planckian radiator for given temperature \(T[K]\) with values in watts per steradian per square metre per nanometer (\(W/sr/m^2/nm\)). |
|
Return the spectral distribution of the planckian radiator for given temperature \(T[K]\) with values in watts per steradian per square metre per nanometer (\(W/sr/m^2/nm\)) according to Rayleigh-Jeans law. |
|
Return a spectral distribution of given spectral shape filled with constant \(k\) values. |
|
Return a spectral distribution of given spectral shape filled with ones. |
|
Return a spectral distribution of given spectral shape filled with zeros. |
|
Return the multi-spectral distributions with given labels and given spectral shape filled with constant \(k\) values. |
|
Return the multi-spectral distributionss with given labels and given spectral shape filled with ones. |
|
Return the multi-spectral distributionss with given labels and given spectral shape filled with zeros. |
Supported gaussian spectral distribution computation methods. |
|
|
Return a gaussian spectral distribution of given spectral shape using given method. |
Supported single LED spectral distribution computation methods. |
|
|
Return a single LED spectral distribution of given spectral shape at given peak wavelength according to given method. |
Supported multi LED spectral distribution computation methods. |
|
|
Return a multi LED spectral distribution of given spectral shape at given peak wavelengths. |
colour.colorimetry
|
Return the spectral radiance of a blackbody as a function of wavelength at thermodynamic temperature \(T[K]\) in a medium having index of refraction \(n\). |
|
Return the spectral radiance of a blackbody as a function of wavelength at thermodynamic temperature \(T[K]\) in a medium having index of refraction \(n\). |
|
Return the approximation of the spectral radiance of a blackbody as a function of wavelength at thermodynamic temperature \(T[K]\) according to Rayleigh-Jeans law. |
Return the daylight locus as CIE xy chromaticity coordinates. |
|
|
Return a gaussian spectral distribution of given spectral shape at given mean wavelength \(\mu\) and standard deviation \(sigma\). |
|
Return a gaussian spectral distribution of given spectral shape at given peak wavelength and full width at half maximum. |
|
Return a single LED spectral distribution of given spectral shape at given peak wavelength and half spectral width \(\Delta\lambda_{0.5}\) according to Ohno (2005) method. |
|
Return a multi LED spectral distribution of given spectral shape at given peak wavelengths, half spectral widths \(\Delta\lambda_{0.5}\) and peak power ratios according to Ohno (2005) method. |
Aliases
colour.colorimetry
|
Return the spectral radiance of a blackbody as a function of wavelength at thermodynamic temperature \(T[K]\) in a medium having index of refraction \(n\). |
Conversion to Tristimulus Values#
colour
|
Convert given spectral distribution to CIE XYZ tristimulus values using given colour matching functions, illuminant and method. |
Supported spectral distribution to CIE XYZ tristimulus values conversion methods. |
|
|
Convert given multi-spectral distributions to CIE XYZ tristimulus values using given colour matching functions and illuminant. |
Supported multi-spectral array to CIE XYZ tristimulus values conversion methods. |
|
|
Convert given wavelength \(\lambda\) to CIE XYZ tristimulus values using given colour matching functions. |
Ancillary Objects
colour.colorimetry
|
Handle the spectral arguments of various Colour definitions performing spectral computations. |
ASTM E308-15#
colour.colorimetry
|
Convert given spectral distribution to CIE XYZ tristimulus values using given colour matching functions and illuminant according to practise ASTM E308-15 method. |
|
Convert given multi-spectral distributions to CIE XYZ tristimulus values using given colour matching functions and illuminant according to practise ASTM E308-15 method. |
Ancillary Objects
colour.colorimetry
Convert given spectral distribution to CIE XYZ tristimulus values using given colour matching functions and illuminant using a table of tristimulus weighting factors according to practise ASTM E308-15 method. |
|
Adjust given table of tristimulus weighting factors to account for a shorter wavelengths range of the test spectral shape compared to the reference spectral shape using practise ASTM E308-15 method: Weights at the wavelengths for which data are not available are added to the weights at the shortest and longest wavelength for which spectral data are available. |
|
|
Compute the Lagrange Coefficients for given interval size using practise ASTM E2022-11 method. |
Return a table of tristimulus weighting factors for given colour matching functions and illuminant using practise ASTM E2022-11 method. |
Integration#
colour.colorimetry
|
Convert given spectral distribution to CIE XYZ tristimulus values using given colour matching functions and illuminant according to classical integration method. |
|
Convert given multi-spectral distributions to CIE XYZ tristimulus values using given colour matching functions and illuminant. |
Spectral Bandpass Dependence Correction#
colour
|
Implement spectral bandpass dependence correction on given spectral distribution using given method. |
Supported spectral bandpass dependence correction methods. |
Stearns and Stearns (1988)#
colour.colorimetry
Implement spectral bandpass dependence correction on given spectral distribution using Stearns and Stearns (1988) method. |
Colour Matching Functions#
colour.colorimetry
|
Implement support for the Stockman and Sharpe LMS cone fundamentals colour matching functions. |
|
Implement support for the CIE RGB colour matching functions. |
|
Implement support for the CIE Standard Observers XYZ colour matching functions. |
Dataset
colour
Multi-spectral distributions of the colour matching functions. |
Ancillary Objects
colour.colorimetry
Multi-spectral distributions of the LMS colour matching functions. |
|
Multi-spectral distributions of the RGB colour matching functions. |
|
Multi-spectral distributions of the CIE Standard Observer colour matching functions. |
Colour Matching Functions Transformations#
Ancillary Objects
colour.colorimetry
Convert Wright & Guild 1931 2 Degree RGB CMFs colour matching functions into the CIE 1931 2 Degree Standard Observer colour matching functions. |
|
Convert Stiles & Burch 1959 10 Degree RGB CMFs colour matching functions into the CIE 1964 10 Degree Standard Observer colour matching functions. |
|
Convert Stiles & Burch 1959 10 Degree RGB CMFs colour matching functions into the Stockman & Sharpe 10 Degree Cone Fundamentals spectral sensitivity functions. |
|
Convert Stockman & Sharpe 2 Degree Cone Fundamentals colour matching functions into the CIE 2015 2 Degree Standard Observer colour matching functions. |
|
Convert Stockman & Sharpe 10 Degree Cone Fundamentals colour matching functions into the CIE 2015 10 Degree Standard Observer colour matching functions. |
Illuminants and Light Sources#
Dataset
colour
Chromaticity coordinates of the illuminants. |
|
Spectral distributions of the illuminants. |
|
Chromaticity coordinates of the light sources. |
|
Spectral distributions of the light sources. |
|
CIE XYZ tristimulus values of the illuminants. |
|
CIE XYZ tristimulus values of the HunterLab illuminants. |
Ancillary Objects
colour.colorimetry
CIE Illuminant D Series \(S_n(\lambda)\) spectral distributions. |
Dominant Wavelength and Purity#
colour
|
Return the dominant wavelength \(\lambda_d\) for given colour stimulus \(xy\) and the related \(xy_wl\) first and \(xy_{cw}\) second intersection coordinates with the spectral locus. |
|
Return the complementary wavelength \(\lambda_c\) for given colour stimulus \(xy\) and the related \(xy_wl\) first and \(xy_{cw}\) second intersection coordinates with the spectral locus. |
|
Return the excitation purity \(P_e\) for given colour stimulus \(xy\). |
|
Return the colorimetric purity \(P_c\) for given colour stimulus \(xy\). |
Luminous Efficiency Functions#
colour
|
Return the luminous efficacy in \(lm\cdot W^{-1}\) of given spectral distribution using given luminous efficiency function. |
|
Return the luminous efficiency of given spectral distribution using given luminous efficiency function. |
|
Return the luminous flux for given spectral distribution using given luminous efficiency function. |
Return the mesopic luminous efficiency function \(V_m(\lambda)\) for given photopic luminance \(L_p\). |
Dataset
colour
Spectral distributions of the luminous efficiency functions. |
Ancillary Objects
colour.colorimetry
Spectral distributions of the photopic luminous efficiency functions. |
|
Spectral distributions of the scotopic luminous efficiency functions. |
Spectral Uniformity#
colour
|
Compute the spectral uniformity (or spectral flatness) of given spectral distributions. |
Lightness Computation#
colour
|
Return the Lightness \(L\) of given luminance \(Y\) using given method. |
Supported Lightness computation methods. |
Glasser, Mckinney, Reilly and Schnelle (1958)#
colour.colorimetry
Return the Lightness \(L\) of given luminance \(Y\) using Glasser et al. (1958) method. |
Wyszecki (1963)#
colour.colorimetry
Return the Lightness \(W\) of given luminance \(Y\) using Wyszecki (1963) method. |
CIE 1976#
colour.colorimetry
|
Return the Lightness \(L^*\) of given luminance \(Y\) using given reference white luminance \(Y_n\) as per CIE 1976 recommendation. |
|
Return the intermediate value \(f(Y/Yn)\) in the Lightness \(L^*\) computation for given luminance \(Y\) using given reference white luminance \(Y_n\) as per CIE 1976 recommendation. |
Fairchild and Wyble (2010)#
colour.colorimetry
|
Compute Lightness \(L_{hdr}\) of given luminance \(Y\) using Fairchild and Wyble (2010) method according to Michaelis-Menten kinetics. |
Fairchild and Chen (2011)#
colour.colorimetry
|
Compute Lightness \(L_{hdr}\) of given luminance \(Y\) using Fairchild and Chen (2011) method according to Michaelis-Menten kinetics. |
Abebe, Pouli, Larabi and Reinhard (2017)#
colour.colorimetry
|
Compute Lightness \(L\) of given luminance \(Y\) using Abebe, Pouli, Larabi and Reinhard (2017) method according to Michaelis-Menten kinetics or Stevens's Power Law. |
Luminance Computation#
colour
|
Return the luminance \(Y\) of given Lightness \(L^*\) or given Munsell value \(V\). |
Supported luminance computation methods. |
Newhall, Nickerson and Judd (1943)#
colour.colorimetry
Return the luminance \(R_Y\) of given Munsell value \(V\) using Newhall et al. (1943) method. |
CIE 1976#
colour.colorimetry
|
Return the luminance \(Y\) of given Lightness \(L^*\) with given reference white luminance \(Y_n\). |
Return the luminance \(Y\) in the luminance \(Y\) computation for given intermediate value \(f(Y/Yn)\) using given reference white luminance \(Y_n\) as per CIE 1976 recommendation. |
ASTM D1535-08e1#
colour.colorimetry
Return the luminance \(Y\) of given Munsell value \(V\) using ASTM D1535-08e1 method. |
Fairchild and Wyble (2010)#
colour.colorimetry
|
Compute luminance \(Y\) of given Lightness \(L_{hdr}\) using Fairchild and Wyble (2010) method according to Michaelis-Menten kinetics. |
Fairchild and Chen (2011)#
colour.colorimetry
|
Compute luminance \(Y\) of given Lightness \(L_{hdr}\) using Fairchild and Chen (2011) method according to Michaelis-Menten kinetics. |
Whiteness Computation#
colour
|
Return the whiteness \(W\) using given method. |
Supported whiteness computation methods. |
Berger (1959)#
colour.colorimetry
|
Return the whiteness index \(WI\) of given sample CIE XYZ tristimulus values using Berger (1959) method. |
Taube (1960)#
colour.colorimetry
|
Return the whiteness index \(WI\) of given sample CIE XYZ tristimulus values using Taube (1960) method. |
Stensby (1968)#
colour.colorimetry
Return the whiteness index \(WI\) of given sample CIE L*a*b* colourspace array using Stensby (1968) method. |
ASTM E313#
colour.colorimetry
|
Return the whiteness index \(WI\) of given sample CIE XYZ tristimulus values using ASTM E313 method. |
Ganz and Griesser (1979)#
colour.colorimetry
|
Return the whiteness index \(W\) and tint \(T\) of given sample CIE xy chromaticity coordinates using Ganz and Griesser (1979) method. |
CIE 2004#
colour.colorimetry
|
Return the whiteness \(W\) or \(W_{10}\) and tint \(T\) or \(T_{10}\) of given sample CIE xy chromaticity coordinates using CIE 2004 method. |
Yellowness Computation#
colour
|
Return the yellowness \(W\) using given method. |
Supported yellowness computation methods. |
ASTM D1925#
colour.colorimetry
|
Return the yellowness index \(YI\) of given sample CIE XYZ tristimulus values using ASTM D1925 method. |
ASTM E313#
colour.colorimetry
Return the yellowness index \(YI\) of given sample CIE XYZ tristimulus values using the alternative ASTM E313 method. |
|
Coefficients \(C_X\) and \(C_Z\) for the ASTM E313 yellowness index \(YI\) computation method. |
|
|
Return the yellowness index \(YI\) of given sample CIE XYZ tristimulus values using ASTM E313 method. |