colour.colorimetry.cmfs Module¶
Colour Matching Functions¶
Defines colour matching functions classes for the dataset from
colour.colorimetry.dataset.cmfs:
LMS_ConeFundamentals: Implements support for the Stockman and Sharpe LMS cone fundamentals colour matching functions.RGB_ColourMatchingFunctions: Implements support for the CIE RGB colour matching functions.XYZ_ColourMatchingFunctions: Implements support for the CIE Standard Observers XYZ colour matching functions.
See also
Colour Matching Functions IPython Notebook colour.colorimetry.dataset.cmfs, colour.colorimetry.spectrum.TriSpectralPowerDistribution
-
class
colour.colorimetry.cmfs.LMS_ConeFundamentals(name, data, title=None)[source]¶ Bases:
colour.colorimetry.spectrum.TriSpectralPowerDistributionImplements support for the Stockman and Sharpe LMS cone fundamentals colour matching functions.
Parameters: - name (unicode) – LMS colour matching functions name.
- data (dict) – LMS colour matching functions.
- title (unicode, optional) – LMS colour matching functions title for figures.
-
l_bar¶
-
m_bar¶
-
s_bar¶
-
l_bar Property for self.x attribute.
Returns: self.x Return type: SpectralPowerDistribution Warning
LMS_ConeFundamentals.l_baris read only.
-
m_bar Property for self.y attribute.
Returns: self.y Return type: SpectralPowerDistribution Warning
LMS_ConeFundamentals.m_baris read only.
-
s_bar Property for self.z attribute.
Returns: self.z Return type: SpectralPowerDistribution Warning
LMS_ConeFundamentals.s_baris read only.
-
class
colour.colorimetry.cmfs.RGB_ColourMatchingFunctions(name, data, title=None)[source]¶ Bases:
colour.colorimetry.spectrum.TriSpectralPowerDistributionImplements support for the CIE RGB colour matching functions.
Parameters: - name (unicode) – CIE RGB colour matching functions name.
- data (dict) – CIE RGB colour matching functions.
- title (unicode, optional) – CIE RGB colour matching functions title for figures.
-
r_bar¶
-
g_bar¶
-
b_bar¶
-
b_bar Property for self.z attribute.
Returns: self.z Return type: SpectralPowerDistribution Warning
RGB_ColourMatchingFunctions.b_baris read only.
-
g_bar Property for self.y attribute.
Returns: self.y Return type: SpectralPowerDistribution Warning
RGB_ColourMatchingFunctions.g_baris read only.
-
r_bar Property for self.x attribute.
Returns: self.x Return type: SpectralPowerDistribution Warning
RGB_ColourMatchingFunctions.r_baris read only.
-
class
colour.colorimetry.cmfs.XYZ_ColourMatchingFunctions(name, data, title=None)[source]¶ Bases:
colour.colorimetry.spectrum.TriSpectralPowerDistributionImplements support for the CIE Standard Observers XYZ colour matching functions.
Parameters: - name (unicode) – CIE Standard Observer XYZ colour matching functions name.
- data (dict) – CIE Standard Observer XYZ colour matching functions.
- title (unicode, optional) – CIE Standard Observer XYZ colour matching functions title for figures.
-
x_bar¶
-
y_bar¶
-
z_bar¶
-
x_bar Property for self.x attribute.
Returns: self.x Return type: SpectralPowerDistribution Warning
XYZ_ColourMatchingFunctions.x_baris read only.
-
y_bar Property for self.y attribute.
Returns: self.y Return type: SpectralPowerDistribution Warning
XYZ_ColourMatchingFunctions.y_baris read only.
-
z_bar Property for self.z attribute.
Returns: self.z Return type: SpectralPowerDistribution Warning
XYZ_ColourMatchingFunctions.z_baris read only.