Colourmaps
Colourmaps
2
  CNRS URA 820, Ecole Nationale Supérieure des Télécommunications, Département de Traitement du Signal et de
l’Image, 46 rue Barrault, 75013 Paris, France
3
    Department of Experimental Psychology, Downing St, Cambridge CB2 3EB, UK
FIG. 2. Computational procedure giving the replacement colourmaps to simulate dichromatic vision (subscript d). Each
operation is numbered according to the successive steps described in the Methods section.
                                                                 1 2 1                            21 2
                     standard                                      X2                                 R2
                   x9     y9                                       Y2       5       RGB to XYZ        G2
Red primary     0.6384 0.3326
Green primary   0.3018 0.6008                                      Z2                                 B2
                                                                                    S                                  DS D
Blue primary    0.1530 0.0682
Reference white       D65                                                               40.9568 35.5041 17.9167             R2
                0.3157 0.3345
                                                                                5       21.3389 70.6743 7.98680             G2        .
                                                                                        1.86297 11.4620 91.2367             B2
                                                                 1 2 1                            21 2
that illustrate protanopic and deuteranopic vision, respec-
                                                                   L                                  X2
tively.
                                                                   M        5       XYZ to LMX        Y2
   The transformation scheme to compute the replacement
                                                                   S                                  Z2
colourmaps includes several steps (Fig. 2).
                                                                    1                                                  21 2
                                                                                 0.15514  0.54312          2 0.03286           X2
1. Given (I, J, K) as the 8-bit DAC values for each of the                      2 0.15514 0.45684
                                                                        5                                   0.03286            Y2     .
   (R, G, B) video channels, we compute the relative                                0        0              0.01608            Z2
   photometric quantities R, G, B:
                      R 5 ~I/ 255!^2.2                    (1)    The RGB to LMS matrix is the product of two matrices:
G 5 ~ J/ 255!^2.2
                      B 5 ~K/ 255!^2.2.
                                                          (1)
                                                          (1)
                                                                 S D
                                                                   L
                                                                   M
                                                                   S
                                                                            5 ~ XYZ to LMS !~ RGB to XYZ !            S D R2
                                                                                                                          G2
                                                                                                                          B2
                                                                                S                                       D
   appropriate scaling of the relative photometric quantities.                       17.8824   43.5161 4.11935
For protanopes:                                                             5        3.45565   27.1554 3.86714
                R 2 5 0.992052 R 1 0.003974               (2)                       0.0299566 0.184309 1.46709
G 2 5 0.992052 G 1 0.003974
                B 2 5 0.992052 B 1 0.003974.
                                                          (2)
                                                          (2)
                                                                                                                3   S D
                                                                                                                     R2
                                                                                                                     G2
                                                                                                                     B2
                                                                                                                               .    (4)
For deuteranopes:
                                                                 4. The reduced colour domain is the plane including the
                R 2 5 0.957237 R 1 0.0213814              (2)       origin, the white point, and the blue primary. Solving the
                                                                    plane equation for the origin (0, 0, 0), the blue primary
                G 2 5 0.957237 G 1 0.0213814              (2)       stimulus (L B , M B , S B ) and the white stimulus (L W , M W ,
                                                                    S W ) gives the equation of the reduced plane
             B 2 5 0.957237 B 1 0.0213814.                (2)
                                                                                         aL 1 bM 1 gS 5 0
3. The LMS specification of each colour is obtained from
   the CIE 1931 ( x, y) specifications of the CRT display by     with
   the following procedure. We first apply the Judd–Vos
   colorimetric modification10,11                                                         a 5 M WS B 2 M BS W
246
                                 the plane of reduced stimuli is a diagonal plane of the RGB colour space of the video display, DAC values for red and green primaries are equal.
                                                        Protan         Deutan                             Protan         Deutan                            Protan      Deutan                                 Protan         Deutan
                                       Standard      replacement    replacement          Standard      replacement    replacement          Standard     replacement replacement              Standard      replacement    replacement
                                      DAC values        values         values           DAC values        values         values           DAC values       values      values               DAC values        values         values
                                  I       J    K     Ip, Jp   Kp    Id, Jd   Kd     I       J    K     Ip, Jp   Kp    Id, Jd   Kd     I       J    K     I p , Jp   Kp   Id, Jd   Kd    I       J    K     Ip, Jp   Kp    Id, Jd   Kd
                                 255     255   255   255      255   253      253   255     255   153   255      153   253      155   255     255   51     255       54   253      65   238       0     0    89       27   139       18
                                 204     255   255   249      254   239      253   204     255   153   249      153   239      156   204     255   51     249       53   239      70   221       0     0    83       27   130       24
                                 153     255   255   246      254   229      254   153     255   153   246      153   229      158   153     255   51     246       52   229      73   187       0     0    71       25   112       32
                                 102     255   255   243      254   222      255   102     255   153   243      153   222      158   102     255   51     243       51   222      75   170       0     0    65       24   103       35
                                 51      255   255   242      254   218      255    51     255   153   242      152   218      159    51     255   51     242       51   218      76   136       0     0    53       23    86       39
                                 0       255   255   241      254   217      255     0     255   153   241      152   217      159     0     255   51     241       51   217      76   119       0     0    48       22    78       40
                                 255     204   255   210      255   219      252   255     204   153   210      154   219      153   255     204   51     210       55   219      60    85       0     0    37       21    63       43
                                 204     204   255   204      255   203      253   204     204   153   204      153   203      155   204     204   51     204       54   203      65    68       0     0    32       21    57       43
                                 153     204   255   199      254   191      253   153     204   153   199      153   191      156   153     204   51     199       53   191      68    34       0     0    24       21    47       44
                                 102     204   255   196      254   181      254   102     204   153   196      153   181      157   102     204   51     196       52   181      71    17       0     0    21       21    45       44
                                 51      204   255   194      254   176      254    51     204   153   194      153   176      157    51     204   51     194       52   176      72     0     238     0   225        8   203       59
                                 0       204   255   193      254   175      254     0     204   153   193      153   175      157     0     204   51     193       52   175      72     0     221     0   209       11   189       57
                                 255     153   255   168      255   190      251   255     153   153   168      154   190      152   255     153   51     168       56   190      55     0     187     0   177       15   161       53
                                 204     153   255   160      255   171      252   204     153   153   160      154   171      153   204     153   51     160       55   171      61     0     170     0   161       16   147       52
                                 153     153   255   153      255   155      253   153     153   153   153      153   155      155   153     153   51     153       54   155      65     0     136     0   129       18   120       49
                                 102     153   255   149      254   143      253   102     153   153   149      153   143      155   102     153   51     149       53   143      67     0     119     0   114       19   107       48
                                 51      153   255   146      254   136      253    51     153   153   146      153   136      156    51     153   51     146       53   136      68     0      85     0    82       20    82       46
                                 0       153   255   145      254   134      253     0     153   153   145      153   134      156     0     153   51     145       53   134      69     0      68     0    67       20    70       45
                                 255     102   255   131      255   167      250   255     102   153   131      154   167      151   255     102   51     131       56   167      52     0      34     0    37       21    51       45
                                 204     102   255   120      255   144      251   204     102   153   120      154   144      152   204     102   51     120       55   144      58     0      17     0    25       21    46       44
                                 153     102   255   110      255   123      252   153     102   153   110      153   123      154   153     102   51     110       54   123      62     0       0   238    21      238    44      236
                                 102     102   255   103      255   107      253   102     102   153   103      153   107      155   102     102   51     103       54   107      65     0       0   221    21      221    44      220
                                 51      102   255    99      254    97      253    51     102   153    99      153    97      155    51     102   51      99       54    97      66     0       0   187    21      187    44      187
                                 0       102   255    98      254    94      253     0     102   153    98      153    94      155     0     102   51      98       53    94      67     0       0   170    21      170    44      171
                                 255      51   255   105      255   152      250   255      51   153   105      154   152      150   255      51   51     105       57   152      51     0       0   136    21      136    44      139
                                 204      51   255    89      255   126      251   204      51   153    89      154   126      152   204      51   51      89       56   126      57     0       0   119    21      120    44      123
                                 153      51   255    74      255   102      252   153      51   153    74      154   102      153   153      51   51      74       55   102      61     0       0    85    21       86    44       92
                                 102      51   255    62      255    80      252   102      51   153    62      153    80      154   102      51   51      62       54    80      63     0       0    68    21       70    44       78
                                 51       51   255    54      255    65      253    51      51   153    54      153    65      155    51      51   51      54       54    65      65     0       0    34    21       39    44       54
                                 0        51   255    51      255    60      253     0      51   153    51      153    60      155     0      51   51      51       54    60      65     0       0    17    21       26    44       47
                                 255       0   255    96      255   148      250   255       0   153    96      154   148      150   255       0   51      96       57   148      50   238     238   238   238      238   236      236
                                 204       0   255    77      255   121      251   204       0   153    77      154   121      152   204       0   51      77       56   121      56   221     221   221   221      221   220      220
                                 153       0   255    59      255    94      252   153       0   153    59      154    94      153   153       0   51      59       55    94      60   187     187   187   187      187   187      187
                                 102       0   255    42      255    70      252   102       0   153    42      153    70      154   102       0   51      42       54    70      63   170     170   170   170      170   171      171
                                 51        0   255    27      255    51      252    51       0   153    27      153    51      154    51       0   51      27       54    51      64   136     136   136   136      136   139      139
                                 0         0   255    21      255    44      253     0       0   153    21      153    44      155     0       0   51      21       54    44      65   119     119   119   120      120   123      123
                                   255     255   204   255      204   253      203   255     255   102   255      103   253      107   255     255   0     255       21   253      44   85     85    85    86      86    92      92
                                   204     255   204   249      204   239      205   204     255   102   249      102   239      110   204     255   0     249       17   239      52   68     68    68    70      70    78      78
                                   153     255   204   246      203   229      205   153     255   102   246      102   229      112   153     255   0     246       12   229      56   34     34    34    39      39    54      54
247
                      b 5 S WL B 2 S BL W
g 5 L WM B 2 L BM W.
    S DS Lp
         Mp
         Sp
              5
                    0 2.02344
                    0
                    0
                         1
                         0
                                   2 2.52581
                                       0
                                       1
                                                    DS D L
                                                         M
                                                         S
                                                                 (5)
    S DS Ld
         Md
         Sd
               5
                        1    0    0
                    0.494207 0 1.24827
                        0    0    1
                                                   DS D L
                                                        M
                                                        S
                                                             .   (5)
              S D
               Rd
               Gd
               Bd
                    5 ~ RGB to LMS ! 21        S D Ld
                                                   Md
                                                   Sd
                                                                       FIG. 3. Colour illustration of the 256 colour palettes spec-
                                                                       ified in Table II. Within each block, the first column illustrates
                                                                       the original colour of the normal colourmap, the second and
S D
                                                                       third columns illustrate its appearance in the protan and
    Rd                                                                 deutan transformation. The vertical sequence of samples is
    Gd                                                                 as in Table II.
    Bd
5S         0.080944
          2 0.0102485
         2 0.000365294
                            2 0.130504
                            0.0540194
                           2 0.00412163
                                                    0.116721
                                                   2 0.113615
                                                    0.693513
                                                                  D       Figure 3 illustrates side-by-side every sample of the
                                                                       256 colour palette of Table II in its normal, protan, and
                                                                       deutan version, in the same order as in the table. It can be
                                                   S D
                                                                       seen that samples of the colourful left column are re-
                                                        Ld
                                                                       placed by yellow or blue shades, in various lightnesses
                                               3        Md   .   (6)
                                                                       or saturations. It can be seen also that the protan and
                                                        Sd
                                                                       the deutan transformation yield colours of different
                                                                       lightnesses.
6. DAC-values of the replacement colourmaps are obtained
                                                                          Figure 4 shows an example where the normal, protan,
   using the inverse of the relationship described in step (1):
                                                                       and deutan versions of an RATP-RER transportation map
                     I d 5 255 R d^~1/ 2.2!                      (7)   of Paris (France) are presented in colour. The Réseau
                                                                       Express Régional (RER) of Régie Autonome des Trans-
                     J d 5 255 G d^~1/ 2.2!                      (7)   ports Parisiens (RATP, Paris, France) is the underground
                                                                       and train network, which operates between Paris and its
                    K d 5 255 B d^~1/ 2.2!.                      (7)
                                                                       outskirts. All colours of the transportation map that have
Table II shows the DAC values of the resulting replacement             been originally used by the designer are part of Table II.
colourmaps.                                                            The protan and deutan versions result from replacing the
   Because the plane of reduced stimuli is a diagonal plane            normal colourmap by the protan or by the deutan colour-
of the RGB colour space of the video display, DAC values               map. Although our algorithm was not available by the
for red and green primaries are equal.                                 time the map was designed, the various transportation
lines are still identifiable. Now that it is available, guid-    Colorimetric Accuracy
ance on the choice of colours can be obtained simply by
                                                                 When proper calibration of the user’s video display is not
substituting the colourmaps.
                                                                 available, the lack of conformity with the ITU standard may
                                                                 be a source of discrepancy. We have computed the errors of
                                                                 confused colours originating from poor calibration taking as
                       DISCUSSION                                a model the most common shifts of CRT parameters. In
                                                                 Table III, we indicate the errors in terms of DAC values for
Although the colourmaps we propose have been constructed         a few samples of the protan replacement palette:
along the same lines as those used in the full “TrueColour”
representation,6 we should evaluate how far the simulation       if the primaries and reference white have the chromaticity
of dichromatic vision is affected by the simplification of the      recommended by the National Television Systems Com-
algorithm that we have adopted here.                                mittee12 instead of those recommended by ITU (Table I),
255          255             255          255           255    254         254               255            255           254           254
  0          255             255          241           254    235         255               243            254           238           254
255             0            255           96           255    112         253                89            255            77           255
  0             0            255           21           255     30         254                17            255            12           254
255          255               0          255            21    254          30               255             17           254            12
  0          255               0          241             0    235          41               243              0           238             0
255             0              0           96            28    112           0                89             23            77            17
  0             0              0           21            21     30          30                17             17            12            12
170             0              0           65            24     77          24                60             20            52            15
 85             0              0           37            21     46          29                33             18            29            13
  0          170               0          161            16    158          35               163             13           159             8
  0            85              0           82            20     82          31                82             16            81            11
  0             0            170           21           170     30         170                17            170            12           170
  0             0             85           21            86     30          88                17             86            12            86
Scaling factor                               0.992052             0.982004                      0.994881                     0.992052
if D93 reference illuminant13 is used as the nominal white                are indiscriminable by a dichromatic observer of the same
   instead of D65,                                                        type.
if the gamma value is 1.8 instead of 2.2.                                    In the absence of an officially recommended set of cone
                                                                          fundamentals, either those of Smith and Pokorny9 or those
This gives a figure of merit of the replacement colourmaps.               of Stockman, MacLeod, and Johnson14 are currently em-
It shows that significant discrepancies could arise from                  ployed in research. We assume that both come close to the
changing either the primaries or the video transfer function;             average normal observer.
the former should not occur, since all ITU members have                      Strictly, the Smith and Pokorny transformation applies to
agreed on a unique recommendation that is gaining accep-                  modified tristimulus values obtained from the spectral
tance for CRT based applications,8 but the latter is easily               power distribution of the stimulus and the colour-matching
encountered in practice. However, changing the nominal                    functions modified by Judd and Vos.11 Because the ITU
white would have minimal effect on the palette.                           video display standard does not specify the primaries in
                                                                          terms of spectral power distribution but in terms of CIE
                                                                          1931 chromaticity coordinates, we have extended the appli-
Simplification of the Reduction Scheme
                                                                          cation of the Vos formula to the chromaticity coordinates of
We propose replacement colourmaps for simulating protan-                  the primaries and nominal white. In order to evaluate the
opic vision and deuteranopic vision, which are the most                   error introduced by this procedure, we have compared the
severe cases of colour deficiency. Anomalous trichromatic                 results with those obtained by a rigorous calculation for an
observers do not confuse all colours of a colour confusion                actual video display.
line, so they would be able to discriminate the colours that                 First, we have measured the ( x, y) chromaticity coordi-
TABLE IV. Comparison between measurements and calculations for an actual CRT video display (IIYAMA
MF-8617A 1995). Columns 2– 4: ( x, y) chromaticity coordinates and (Y) luminance (normalized to 100) in the CIE
1931 colorimetric system. Column 5–7: (x9, y9) chromaticity coordinates and (Ym) luminance obtained using the
Judd–Vos modified colour-matching functions. Column 8 –9: (x9, y9) chromaticity coordinates obtained applying
the Vos formula to (x, y) CIE 1931 chromaticity coordinates.
                                 Measurements                      Results obtained using Vos cmfs                x9 y9 converted from x y
                      x               y               Y           x9                   y9              Ym           x9                y9
TABLE V. DAC values, IpJpKp, for the protan replacement colourmap computed for the actual CRT video display
(IIYAMA MF-8617A 1995), obtained using the Judd–Vos modified colour-matching functions with the spectral
distribution of the primaries, or obtained applying the Vos formula to (x, y) CIE 1931 chromaticity coordinates.
                                                             DAC values obtained using                         DAC values obtained
      DAC values of the original colourmap                           Vos cmfs                                  applying Vos formula
 I                     J                     K               Ip, Jp                    Kp                  I9p, J9p               K9p