Defines colour quality scale computation objects:
References
[1] | Davis, W., & Ohno, Y. (2010). Color quality scale. Optical Engineering, 49(3), 33602–33616. doi:10.1117/1.3360335 |
[2] | Ohno, Y., & Davis, W. (2008). NIST CQS simulation 7.4. Retrieved from http://cie2.nist.gov/TC1-69/NIST CQS simulation 7.4.xls |
Bases: colour.quality.cqs.VS_ColorimetryData
Defines the the class holding VS test colour samples colorimetry data.
Bases: colour.quality.cqs.VS_ColourQualityScaleData
Defines the the class holding VS test colour samples colour quality scale data.
Bases: colour.quality.cqs.CQS_Specification
Defines the CQS colour quality specification.
Parameters: |
|
---|
Returns the colour quality scale of given spectral power distribution.
Parameters: |
|
---|---|
Returns: | Color quality scale. |
Return type: | numeric or CQS_Specification |
Examples
>>> from colour import ILLUMINANTS_RELATIVE_SPDS
>>> spd = ILLUMINANTS_RELATIVE_SPDS.get('F2')
>>> colour_quality_scale(spd)
64.6860580...
Returns the gamut area \(G\) covered by given CIE Lab matrices.
Parameters: | Lab (array_like) – CIE Lab colourspace matrices. |
---|---|
Returns: | Gamut area \(G\). |
Return type: | numeric |
Examples
>>> Lab = [
... np.array([39.94996006, 34.59018231, -19.86046321]),
... np.array([38.88395498, 21.44348519, -34.87805301]),
... np.array([36.60576301, 7.06742454, -43.21461177]),
... np.array([46.60142558, -15.90481586, -34.64616865]),
... np.array([56.50196523, -29.54655550, -20.50177194]),
... np.array([55.73912101, -43.39520959, -5.08956953]),
... np.array([56.20776870, -53.68997662, 20.21134410]),
... np.array([66.16683122, -38.64600327, 42.77396631]),
... np.array([76.72952110, -23.92148210, 61.04740432]),
... np.array([82.85370708, -3.98679065, 75.43320144]),
... np.array([69.26458861, 13.11066359, 68.83858372]),
... np.array([69.63154351, 28.24532497, 59.45609803]),
... np.array([61.26281449, 40.87950839, 44.97606172]),
... np.array([41.62567821, 57.34129516, 27.46718170]),
... np.array([40.52565174, 48.87449192, 3.45121680])]
>>> gamut_area(Lab)
8335.9482018...