colour_datasets.loaders.DatasetLoader_Luo1997#

class colour_datasets.loaders.DatasetLoader_Luo1997[source]#

Bases: AbstractDatasetLoader

Define the Luo and Rhodes (1997) LUTCHI Colour Appearance Data dataset loader.

Attributes

Methods

References

[LCR+91a], [LCR+91b], [LGR+93], [LR97]

ID: str = '4394536'#

Dataset record id, i.e., the Zenodo record number.

load() Dict[str, ExperimentalGroupLuo1997][source]#

Sync, parse, convert and return the Luo and Rhodes (1997) LUTCHI Colour Appearance Data dataset content.

Returns:

Luo and Rhodes (1997) LUTCHI Colour Appearance Data dataset content.

Return type:

dict

Notes

  • The cold65wnl file located at the following url: https://web.archive.org/web/20031230164218/http://colour.derby.ac.uk/colour/info/lutchi/data/cold65wnl is empty. Mark Fairchild’s archive located at the following url: http://www.rit-mcsl.org/fairchild/files/LUTCHI_Data.sit also contains an empty cold65wnl file. A single line break has been added to the original file so that it can be uploaded to Zenodo.

  • The BIT.p*.* files are effectively named bit_p*.*.

  • The cola.l file does not exist and is assumed to be named colal.l.

  • The Self-luminous entry for Table I: Summary of the experimental groups is named CRT in the sub-sequent tables.

  • The mean4.p* and col.rf.p* files should all have 40 samples, unexpectedly all the col.rf.p* files have 41 samples. The first data rows are used as they are better correlated between the two datasets. The last row could be the experimental whitepoint.

  • The mean4.p7, mean4.p8, mean4.p9, mean4.p10, mean4.p11, and mean4.p12 files represent brightness experimental results.

  • The bit_p3.vis file has 5 columns instead of 4 only the last 3 are accounted for.

Examples

>>> from colour_datasets.utilities import suppress_stdout
>>> dataset = DatasetLoader_Luo1997()
>>> with suppress_stdout():
...     dataset.load()
...
>>> len(dataset.content.keys())
8