|
2 | 2 | Test Colour Samples Spectral Distributions
|
3 | 3 | ==========================================
|
4 | 4 |
|
5 |
| -Define the *CIE 1995* test colour samples spectral distributions |
6 |
| -plus TCS15. |
| 5 | +Define the *CIE 1995* and *CIE 2024* test colour samples spectral distributions. |
7 | 6 |
|
8 |
| -The *CIE 1995* test colour samples data is in the form of a *dict* of |
9 |
| -:class:`colour.SpectralDistribution` classes as follows:: |
| 7 | +The *CIE 1995* and *CIE 2024* test colour samples data is in the form of a |
| 8 | +*dict* of :class:`colour.SpectralDistribution` classes as follows:: |
10 | 9 |
|
11 | 10 | {'name': SpectralDistribution, ..., 'name': SpectralDistribution}
|
12 | 11 |
|
13 | 12 | References
|
14 | 13 | ----------
|
| 14 | +- :cite:`CIE2024` : CIE. (2024). Spectral radiance factors of test-colour |
| 15 | + sample #15 of the Japanese skin complexion, 5nm wavelength steps [Data set]. |
| 16 | + International Commission on Illumination (CIE). doi:10.25039/CIE.DS.7chm7z5h |
15 | 17 | - :cite:`Ohno2008a` : Ohno, Yoshiro, & Davis, W. (2008). NIST CQS simulation
|
16 | 18 | (Version 7.4) [Computer software].
|
17 | 19 | https://drive.google.com/file/d/1PsuU6QjUJjCX6tQyCud6ul2Tbs8rYWW9/view?\
|
|
31 | 33 | __status__ = "Production"
|
32 | 34 |
|
33 | 35 | __all__ = [
|
| 36 | + "APPROXIMATE_MUNSELL_NOTATIONS_TCS_CIE1995", |
| 37 | + "INDEXES_TO_NAMES_TCS_CIE1995", |
| 38 | + "DATA_TCS_CIE1995", |
| 39 | + "SDS_TCS_CIE1995", |
| 40 | + "APPROXIMATE_MUNSELL_NOTATIONS_TCS_CIE2024", |
| 41 | + "INDEXES_TO_NAMES_TCS_CIE2024", |
| 42 | + "DATA_TCS_CIE2024", |
| 43 | + "SDS_TCS_CIE2024", |
34 | 44 | "INDEXES_TO_NAMES_TCS",
|
35 |
| - "APPROXIMATE_MUNSELL_NOTATIONS_TCS", |
36 |
| - "DATA_TCS", |
37 |
| - "SDS_TCS_CIE_1995", |
38 |
| - "SDS_TCS_CIE_2024", |
39 |
| - "SDS_TCS_SETS", |
40 | 45 | "SDS_TCS",
|
41 | 46 | ]
|
42 | 47 |
|
43 |
| -INDEXES_TO_NAMES_TCS: dict = { |
44 |
| - 1: "TCS01", |
45 |
| - 2: "TCS02", |
46 |
| - 3: "TCS03", |
47 |
| - 4: "TCS04", |
48 |
| - 5: "TCS05", |
49 |
| - 6: "TCS06", |
50 |
| - 7: "TCS07", |
51 |
| - 8: "TCS08", |
52 |
| - 9: "TCS09", |
53 |
| - 10: "TCS10", |
54 |
| - 11: "TCS11", |
55 |
| - 12: "TCS12", |
56 |
| - 13: "TCS13", |
57 |
| - 14: "TCS14", |
58 |
| - 15: "TCS15", |
59 |
| -} |
60 |
| -"""Test colour samples indexes to names mapping.""" |
61 |
| - |
62 |
| -APPROXIMATE_MUNSELL_NOTATIONS_TCS: CanonicalMapping = CanonicalMapping( |
| 48 | +APPROXIMATE_MUNSELL_NOTATIONS_TCS_CIE1995: CanonicalMapping = CanonicalMapping( |
63 | 49 | {
|
64 | 50 | "TCS01": "7.5 R 6/4",
|
65 | 51 | "TCS02": "5 Y 6/4",
|
|
78 | 64 | "TCS15": "1 YR 6/4",
|
79 | 65 | }
|
80 | 66 | )
|
81 |
| -"""Test colour samples *Munsell* colour approximations.""" |
| 67 | +""" |
| 68 | +Test colour samples *Munsell* colour approximations for *CIE 1995* |
82 | 69 |
|
83 |
| -DATA_TCS: dict = { |
| 70 | +References |
| 71 | +---------- |
| 72 | +:cite:`Ohno2008a` |
| 73 | +""" |
| 74 | + |
| 75 | + |
| 76 | +INDEXES_TO_NAMES_TCS_CIE1995: dict = { |
| 77 | + 1: "TCS01", |
| 78 | + 2: "TCS02", |
| 79 | + 3: "TCS03", |
| 80 | + 4: "TCS04", |
| 81 | + 5: "TCS05", |
| 82 | + 6: "TCS06", |
| 83 | + 7: "TCS07", |
| 84 | + 8: "TCS08", |
| 85 | + 9: "TCS09", |
| 86 | + 10: "TCS10", |
| 87 | + 11: "TCS11", |
| 88 | + 12: "TCS12", |
| 89 | + 13: "TCS13", |
| 90 | + 14: "TCS14", |
| 91 | +} |
| 92 | +""" |
| 93 | +Test colour samples indexes to names mapping for *CIE 1995* |
| 94 | +
|
| 95 | +References |
| 96 | +---------- |
| 97 | +:cite:`Ohno2008a` |
| 98 | +""" |
| 99 | + |
| 100 | +DATA_TCS_CIE1995: dict = { |
84 | 101 | "TCS01": {
|
85 | 102 | 360: 0.116,
|
86 | 103 | 365: 0.136,
|
|
1439 | 1456 | 825: 0.451,
|
1440 | 1457 | 830: 0.454,
|
1441 | 1458 | },
|
| 1459 | +} |
| 1460 | + |
| 1461 | +SDS_TCS_CIE1995: CanonicalMapping = CanonicalMapping( |
| 1462 | + { |
| 1463 | + key: SpectralDistribution(value, name=key) |
| 1464 | + for key, value in DATA_TCS_CIE1995.items() |
| 1465 | + } |
| 1466 | +) |
| 1467 | +""" |
| 1468 | +Test colour samples spectral distributions for *CIE 1995*. |
| 1469 | +
|
| 1470 | +References |
| 1471 | +---------- |
| 1472 | +:cite:`Ohno2008a` |
| 1473 | +""" |
| 1474 | + |
| 1475 | +APPROXIMATE_MUNSELL_NOTATIONS_TCS_CIE2024: CanonicalMapping = CanonicalMapping( |
| 1476 | + { |
| 1477 | + **APPROXIMATE_MUNSELL_NOTATIONS_TCS_CIE1995, |
| 1478 | + "TCS15": "1 YR 6/4", |
| 1479 | + } |
| 1480 | +) |
| 1481 | +""" |
| 1482 | +Test colour samples *Munsell* colour approximations for *CIE 2024* |
| 1483 | +
|
| 1484 | +References |
| 1485 | +---------- |
| 1486 | +:cite:`CIE2024` |
| 1487 | +""" |
| 1488 | + |
| 1489 | +INDEXES_TO_NAMES_TCS_CIE2024: dict = { |
| 1490 | + 1: "TCS01", |
| 1491 | + 2: "TCS02", |
| 1492 | + 3: "TCS03", |
| 1493 | + 4: "TCS04", |
| 1494 | + 5: "TCS05", |
| 1495 | + 6: "TCS06", |
| 1496 | + 7: "TCS07", |
| 1497 | + 8: "TCS08", |
| 1498 | + 9: "TCS09", |
| 1499 | + 10: "TCS10", |
| 1500 | + 11: "TCS11", |
| 1501 | + 12: "TCS12", |
| 1502 | + 13: "TCS13", |
| 1503 | + 14: "TCS14", |
| 1504 | + 15: "TCS15", |
| 1505 | +} |
| 1506 | +""" |
| 1507 | +Test colour samples indexes to names mapping for *CIE 2024*. |
| 1508 | +
|
| 1509 | +References |
| 1510 | +---------- |
| 1511 | +:cite:`CIE2024` |
| 1512 | +""" |
| 1513 | + |
| 1514 | +DATA_TCS_CIE2024: dict = { |
| 1515 | + **DATA_TCS_CIE1995, |
1442 | 1516 | "TCS15": {
|
1443 | 1517 | 380: 0.131,
|
1444 | 1518 | 385: 0.139,
|
|
1524 | 1598 | },
|
1525 | 1599 | }
|
1526 | 1600 |
|
1527 |
| -SDS_TCS_CIE_1995: CanonicalMapping = CanonicalMapping( |
| 1601 | +SDS_TCS_CIE2024: CanonicalMapping = CanonicalMapping( |
1528 | 1602 | {
|
1529 | 1603 | key: SpectralDistribution(value, name=key)
|
1530 |
| - for key, value in { |
1531 |
| - x: DATA_TCS[x] |
1532 |
| - for x in [ |
1533 |
| - "TCS01", |
1534 |
| - "TCS02", |
1535 |
| - "TCS03", |
1536 |
| - "TCS04", |
1537 |
| - "TCS05", |
1538 |
| - "TCS06", |
1539 |
| - "TCS07", |
1540 |
| - "TCS08", |
1541 |
| - "TCS09", |
1542 |
| - "TCS10", |
1543 |
| - "TCS11", |
1544 |
| - "TCS12", |
1545 |
| - "TCS13", |
1546 |
| - "TCS14", |
1547 |
| - ] |
1548 |
| - }.items() |
| 1604 | + for key, value in DATA_TCS_CIE2024.items() |
1549 | 1605 | }
|
1550 | 1606 | )
|
| 1607 | +""" |
| 1608 | +Test colour samples spectral distributions for *CIE 2024*. |
| 1609 | +
|
| 1610 | +References |
| 1611 | +---------- |
| 1612 | +:cite:`CIE2024` |
| 1613 | +""" |
1551 | 1614 |
|
1552 |
| -SDS_TCS_CIE_2024: CanonicalMapping = CanonicalMapping( |
| 1615 | +INDEXES_TO_NAMES_TCS: CanonicalMapping = CanonicalMapping( |
1553 | 1616 | {
|
1554 |
| - key: SpectralDistribution(value, name=key) |
1555 |
| - for key, value in { |
1556 |
| - x: DATA_TCS[x] |
1557 |
| - for x in [ |
1558 |
| - "TCS01", |
1559 |
| - "TCS02", |
1560 |
| - "TCS03", |
1561 |
| - "TCS04", |
1562 |
| - "TCS05", |
1563 |
| - "TCS06", |
1564 |
| - "TCS07", |
1565 |
| - "TCS08", |
1566 |
| - "TCS09", |
1567 |
| - "TCS10", |
1568 |
| - "TCS11", |
1569 |
| - "TCS12", |
1570 |
| - "TCS13", |
1571 |
| - "TCS14", |
1572 |
| - "TCS15", |
1573 |
| - ] |
1574 |
| - }.items() |
| 1617 | + "CIE 1995": INDEXES_TO_NAMES_TCS_CIE1995, |
| 1618 | + "CIE 2024": INDEXES_TO_NAMES_TCS_CIE2024, |
1575 | 1619 | }
|
1576 | 1620 | )
|
| 1621 | +""" |
| 1622 | +Test colour samples indexes to names mapping for *CIE 1995* and *CIE 2024*. |
1577 | 1623 |
|
1578 |
| -SDS_TCS_SETS: CanonicalMapping = CanonicalMapping( |
| 1624 | +References |
| 1625 | +---------- |
| 1626 | +:cite:`CIE2024`, :cite:`Ohno2008a` |
| 1627 | +""" |
| 1628 | + |
| 1629 | +SDS_TCS: CanonicalMapping = CanonicalMapping( |
1579 | 1630 | {
|
1580 |
| - "CIE 1995": SDS_TCS_CIE_1995, |
1581 |
| - "CIE 2024": SDS_TCS_CIE_2024, |
| 1631 | + "CIE 1995": SDS_TCS_CIE1995, |
| 1632 | + "CIE 2024": SDS_TCS_CIE2024, |
1582 | 1633 | }
|
1583 | 1634 | )
|
1584 |
| - |
1585 |
| -# TODO: deprecate SDS_TCS (was renamed to SDS_TCS_CIE_1995) |
1586 |
| -SDS_TCS = SDS_TCS_CIE_1995 |
1587 |
| - |
1588 |
| - |
1589 | 1635 | """
|
1590 |
| -Test colour samples spectral distributions. |
| 1636 | +Test colour samples spectral distributions for *CIE 1995* and *CIE 2024*. |
1591 | 1637 |
|
1592 | 1638 | References
|
1593 | 1639 | ----------
|
1594 |
| -:cite:`Ohno2008a` |
| 1640 | +:cite:`CIE2024`, :cite:`Ohno2008a` |
1595 | 1641 | """
|
0 commit comments