colour.CorrespondingColourDataset¶
-
class
colour.
CorrespondingColourDataset
[source]¶ Defines a corresponding colour dataset.
- Parameters
name (unicode) – Corresponding colour dataset name.
XYZ_r (array_like) – CIE XYZ tristimulus values of the reference illuminant.
XYZ_t (array_like) – CIE XYZ tristimulus values of the test illuminant.
XYZ_cr (array_like) – Corresponding CIE XYZ tristimulus values under the reference illuminant.
XYZ_ct (array_like) – Corresponding CIE XYZ tristimulus values under the test illuminant.
Y_r (numeric) – Reference white luminance \(Y_r\) in \(cd/m^2\).
Y_t (numeric) – Test white luminance \(Y_t\) in \(cd/m^2\).
B_r (numeric) – Luminance factor \(B_r\) of reference achromatic background as percentage.
B_t (numeric) – Luminance factor \(B_t\) of test achromatic background as percentage.
metadata (dict) – Dataset metadata.
Notes
This class is compatible with Luo and Rhodes (1999) Corresponding-Colour Datasets datasets.
References
Create new instance of CorrespondingColourDataset(name, XYZ_r, XYZ_t, XYZ_cr, XYZ_ct, Y_r, Y_t, B_r, B_t, metadata)
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
Initialize self.
count
(value)index
(value, [start, [stop]])Raises ValueError if the value is not present.
Attributes
B_r
Alias for field number 7
B_t
Alias for field number 8
XYZ_cr
Alias for field number 3
XYZ_ct
Alias for field number 4
XYZ_r
Alias for field number 1
XYZ_t
Alias for field number 2
Y_r
Alias for field number 5
Y_t
Alias for field number 6
metadata
Alias for field number 9
name
Alias for field number 0