Tlci 2012
Tlci 2012
(TLCI-2012)
Alan Roberts © 2018-11-24. Version 2.018
1 OVERVIEW ....................................................................................................................... 3
1.1 Warning ................................................................................................................................................ 3
1.2 File conversion modules ....................................................................................................................... 3
1.3 Running from the command line .......................................................................................................... 4
1.4 Error handling ....................................................................................................................................... 4
1.5 Keyboard shortcuts ............................................................................................................................... 4
1.6 CIE matters ........................................................................................................................................... 4
2 PROGRAM MENU STRUCTURE.................................................................................... 5
2.1 File menu .............................................................................................................................................. 5
2.1.1 Open illuminant file for TLCI-2012 ......................................................................................................... 5
2.1.2 History file list, show TLCI ...................................................................................................................... 5
2.1.3 TLCI/TLMF control dialog ....................................................................................................................... 5
2.1.3.1 EBU R137 report. ................................................................................................................................. 5
2.1.3.1.1 The meaning of the Qa value. ............................................................................................................ 6
2.1.3.1.2 The meaning of the d value. .............................................................................................................. 7
2.1.3.2 EBU R137 report + save BMP file. ...................................................................................................... 7
2.1.3.3 EBU R137 report + metadata file.......................................................................................................... 7
2.1.3.4 Cartwheel, Colourists Advice. .............................................................................................................. 7
2.1.3.5 Colour patches as files. ......................................................................................................................... 7
2.1.4 CRI control dialog..................................................................................................................................... 7
2.1.4.1 CRI report. ............................................................................................................................................ 8
2.1.4.2 Cartwheel, Colourists Advice. .............................................................................................................. 8
2.1.5 Metameric simulation on BMP file ........................................................................................................... 8
2.1.6 Load .bmp file to screen ............................................................................................................................ 9
2.1.7 Save .bmp file of screen ............................................................................................................................ 9
2.1.8 Colour bars ................................................................................................................................................ 9
2.1.9 Plot spectrum of test illuminant ............................................................................................................... 9
2.1.10 Convert spectroradiometric file................................................................................................................. 9
2.1.10.1 Select radiometer................................................................................................................................. 10
2.1.10.2 Radiometer file .................................................................................................................................... 10
2.1.10.3 Action .................................................................................................................................................. 10
2.1.10.4 Do it .................................................................................................................................................... 10
2.1.11 Run spectroradiometer utility/Run custom utility ................................................................................... 10
2.2 Setup Menu ......................................................................................................................................... 10
2.2.1 General settings ....................................................................................................................................... 11
2.2.2 Metadata file settings .............................................................................................................................. 12
2.3 Utilities menu ..................................................................................................................................... 12
2.3.1 Colorimetric utility.................................................................................................................................. 12
2.3.2 List stored data ........................................................................................................................................ 13
3 THE MATHEMATICS .................................................................................................... 15
3.1 Flow diagram of the TLCI processing ................................................................................................ 15
3.2 Mathematics of the Standard camera.................................................................................................. 15
3.3 Mathematics of the Standard display.................................................................................................. 16
3.4 CIEDE2000 Colour Difference Analysis ........................................................................................... 16
3.5 Derivation of TLCI-2012/TLMF-2013 Qa value ............................................................................... 18
4 THE MATHEMATICS OF TRANSFORMATION ........................................................ 18
1
5 SETUP CONDITIONS ..................................................................................................... 20
6 LIGHTING FILTERS ....................................................................................................... 22
2
1 OVERVIEW
This program is intended to be used for the assessment of light sources for use in television lighting.
The program defines a ‘standard’ camera, and then uses it to analyse a set of test colours when illuminated by a
standard source and by the source under test. The colorimetric differences between the two exposure conditions,
when viewed on a reference display, are calculated according to the principles espoused by W.N.Sproson and
E.W.Taylor of BBC R&D, in:
‘A colour television illuminant consistency index’, BBC R&D Report 1971/45
‘Rank order difference analysis applied to tests of the television consistency index’, BBC R&D Report 1982/10
‘The assessment of the colorimetric properties of light sources for use in television scene lighting’, BBC R&D Report
1988/2
The algorithm used in this software is specified in EBU document Tech 3355, with supporting information in Tech
3353 and 3354.
The analysis calculates the video drive signals for each test colour, and can then display them for immediate viewing.
All the relevant properties of the camera and display are set from data within the program.
Each time the program is run, it will create data files it needs for the calculations. They will be created in the same
folder as the program software. You can safely delete these when the program exits, if you wish.
Note that, at any time, you can copy the screen contents to the clipboard as graphics with Alt-PrintScreen, or only the
text content with Ctrl-Tab. This can then be pasted into any conventional Windows application with Paste or Ctrl-V.
If you have previously used the file conversion program to convert an ASEQ LR1 file for use here, the program will
immediately load it and show the report on it using whichever algorithm was last selected.
Menu items which are greyed out are unavailable in User mode, but available in Engineering mode, for which
payment is required.
1.1 Warning
This software was written on PCs, starting with Windows XP and then Windows 7 Pro and on Windows 10. Although
it should work correctly in all versions of Windows, it has not been fully tested on any other versions. So there may be
problems as yet undiscovered. For example, running it on a Windows 8 PC appears to set the program window size
incorrectly, and I have no idea why.
3
There is a list of the currently available modules in a separate file, ‘TLCI-2012 converters.pdf’. Other modules will be
written and released as and when they are needed. Contact me if you need another module.
4
2 PROGRAM MENU STRUCTURE
2.1 File menu
This menu contains the controls for the screen plots, and the generation of standard-format files for later use within the
program. Some items are not available in User mode, and will not be described here.
5
The EBU R137 screen report forms the main output of the software. Note that the software produces optimal-looking
output when the window is the default size for the software, 1424x732. If the size or shape is changed, fonts and sizes
will be adjusted to try to keep it looking good, but any major departure from the aspect ratio of about 1.95:1 will result
in distorted representation of the Colorchecker chart. The colour representation will not be affected, only the shape of
the chart and patches.
Top left is the verdict, it shows the Test Illuminant file name, its calculated Correlated Colour Temperature (CCT)
and the distance d from the locus (in multiples of 0.0054 in CIE1960uv chromaticity, as recommended in CIE Tech
15.3), the reference luminaire, and the found TLCI-2012 value for Qa on a scale from 0 (no light) to 100 (perfect).
Top right is the Colourist’s Advice Report. This gives advice for the colourist attempting to correct for the colour
errors, in 12 hue sectors, with, for each sector, a suggestion for the correction needed in Lightness, Chroma, and Hue.
This advice is not, and cannot be, precise or definitive, it is only approximate. A zero value means that the error is
probably too small to be visible, a single + or – means the error is very small and the sign tells which way to apply
correction), multiple + or - tells that the necessary correction is progressively greater.
Bottom left is Colour Patches. This shows the colours of the Colorchecker card. It is correct for sRGB or television
displays only (choose which in ‘Setup > General settings’, ‘Screen coding sRGB (0~255)’ or ‘Screen coding video
(156~235)’, this does not affect the TLCI calculations, only the display). Each colour patch is full size for the
Reference illuminant, with the result for the Test illuminant inset centrally.
Bottom right is a plot of the spectral power distribution of the Test (in black) and Reference (in cyan) illuminants.
Both spectra are plotted to fill the space allowed.
6
together without inter-cutting or mixing to different locations or lighting. The scoring was derived from further
subjective tests conducted in 2015 with television professionals. Typically, this scale is appropriate for live production
such as sport and news where pictures have no post-processing and the pictures are required only to be credible.
Note that these opinions do not form hard definitions, there is considerable overlap. This has two main causes;
opinions inevitably varied slightly, and the chosen colour-difference metric (CIEDE2000) is not perfect.
7
Press file to select a file.
If the CCT cannot be found, then the ‘Now do the sums’ button will be
disabled. You can also select which colour or sub-set of colours in the test
set will be used. Note that if you do not select 1~8, then the result will be
non-standard and you will be told so.
Select what you want to do, then do it.
8
each pixel (press ‘Show me …’ to see a table of the data values). If any pixels are clipped, you will be told (it makes
sense to use a BMP image file in which there is a little headroom for raised signal levels).
Once the file has been generated, it will be flashed alternately with the original bitmap file. You can control the speed
of the flashing with the cursor keys; left/down to speed up, right/up to slow down. Press almost any other key to stop,
when the screen will stay on the performance of the test illuminant.
The new bitmap file will have been created in the same folder as loaded bitmap file, and will have the same name with
.test.bmp appended.
9
In the Action selection box, you can decide what to do with the converted file. The list includes all the options in the
TLCI and CRI dialog selections, plus plotting the file.
If you are processing a lot of files, check the ‘Keep this dialog box open’ tick-box to prevent the dialog closing each
time.
If, in the ‘Action’ list, you select ‘EBU R137 TLCI report + metadata files’, you can then check the second tick box.
This will attempt to decode the file name for lines of data to go in the xls file. See section 2.2.7 for details.
2.1.10.3 Action
Choose what to do after the conversion.
2.1.10.4 Do it
Click this to carry out the action. The conversion takes place. A file will be generated, in the same folder as the RAW
file, and with the same file name but with the extra extension ‘.lum’. The file will be analysed, chromaticity
coordinates reported together with the correlated colour temperature. You will also get a Distance value, the distance
(in units of CIE1960uv chromaticity) scaled by 0.0054 as used in CRI calculations. The maximum and minimum
values in the output file are also reported, together with a count of the number of samples falling below zero (i.e.
negative), if any. Any negative values in a file will not cause it to be rejected in the CRI and TLCI calculations, and
that any such negative values will be not be clipped at zero.
You then get whatever choice you made in the Action list.
10
2.2.1 General settings
This sets several parameters which affect the screen
appearance but have no effect on any of the calculations.
Screen dimensions. Set the width and height of the
image, you cannot exceed the size of the actual
screen or 1920x1440, whichever is the lower.
Press OK when done, and the screen size will be
changed and cleared to white, unless you have
already caused screen output, in which case it will
be replaced. The minimum size for sensible use is
about 712x366.
BEWARE the software has not been tested on all
versions of Windows, and it appears that Windows 8 may introduce some unwanted scaling. At present, there is
nothing I can do about that.
Reset TLCI/TLMF standard size. The default screen size is 1424 x 732, you cannot change these values.
The values were chosen almost by accident, but all the screen output has been designed to look acceptable at
this screen size. Enlarging or shrinking the screen, particularly if the aspect ratio is changed, may still be
acceptable, but it is up to you to ensure that.
Fix aspect ratio. This will keep the height appropriate when you change the width, the ‘normal’ aspect ratio
is 356:183, and was derived entirely accidentally, but all the display options have been optimised for this
shape.
Screen coding. Select either sRGB or video coding. sRGB is suitable for graphics displays in which black
level is set to 0 and white to 255, while video coding (ITU 601 or 709) is correct for television displays.
This is relevant only for the on-screen showing of colours, whether colour bars or the results of system
analysis. Since the screen, and Windows bitmap files, have only 8-bit coding, only levels 0~255 are available.
Broadcast systems accord with ITU recommendations 601 (for SDTV) and 709 (for HDTV) which both
specify that black level is set to quantum level 16, and white to 235, i.e. 219 coding levels. Should any colour
excurse outside those limits they will not be clipped unless they reach 0 or 255 (i.e. peak white level is
1.091). Use this setting if the computer is feeding a television display, or if a bitmap file is to be saved for
further use in a video system.
sRGB is a graphics and multimedia standard, and applies to web video and graphics displays. Use this setting
if the computer is feeding only computer displays, and if any saved bitmap will be used in a print or graphics
environment.
Plot spectra as lines or histograms. The software uses sampled spectral data, at 5nm intervals. The most
honest way to use this data is to show it as a histogram, with constant energy level across each 5nm band.
However it can be more pleasing to show the data as a smooth curve, although very narrow spikes may appear
to be misrepresented. It’s your choice. This applies to the report screens and file plot, not to the data plots.
Plot spectra filled or unfilled. Filled spectra show the approximate colour at each wavelength, filling down
to the axis. This applies to the report screens and file plot, not to the data plots.
Fix aspect ratio. The normal aspect ratio for TLCI reports is 356:183, the graphics are optimised for this
shape.
Delete working files on exit. The program makes many files for its own use, many are data listings, you can
use these as you wish.
Delete spd files after use. When a spectroradiometer file is converted to the TLCI lum format, an spd file is
first generated. This contains the raw data but in a standard form which can be loaded into a spreadsheet. If
you don’t need this facility, check this ox and I’ll delete them when I’m done with them.
Use accreditation data from file. If you have received the accolade of EBU accreditation for TLCI
measurements, you will already know how to exploit this. But there may be occasions where you don’t want
to reveal that accreditation, such as when supplying a measurement to a manufacturer for use in promotional
material. In that case, uncheck this box to revert to the normal, standard display. This is a toggle, so you can
reinstate accreditation by checking the box.
This item is not available if you do not already have EBU accreditation. If you wish to have this accreditation,
contact me at [email protected] to discuss the matter.
11
Log conversion process to file. Perhaps not the most descriptive of titles, but it works for me. Check this to
create a log file of any errors which might occur during conversion of spectroradiometer data to my lum file
format. The file is named TLCI-2012 Convert spectroradiometer to lum.log and is plain text. If it already
exists, new data will be appended to it. The file contains the internal error reporting during each conversion
process. Note that conversion to the spd format is likely to generate quite a few errors as the program tries out
each conversion routine in turn to find the one that doesn’t return an error. If you have problems with file
conversion, use this feature and send me this log file to help me in my detective work.
MacAdam ellipse size. This is the size that MacAdam ellipses will be drawn in the chromaticity diagrams.
Conventionally the size is 10 times the actual minimum discriminable colour difference. This is also the size
of the interpolated chromaticity ellipses and the luminance jnd (Just Noticeable Difference) size ellipses.
Program startup dialog. Select which dialog should open automatically when the program runs. You can
also select ‘None’, or ‘Last used dialog’ which will cause the program to open with the dialog last used the
previous time.
In this example, this has obviously failed, because the manufacturer name is two words. So it will not always work
properly but you can edit the results here. Note that if the file name does not fit this standard form, then it will not
work properly if you check the option in any of the TLCI, TLMF or Convert dialogs
The date should be in the form dd/mm/yyyy or dd.mm.yyyy format for some subsequent operations to perform properly.
The camera and display model is the one used in the TLCI/TLMF calculations, and always uses the default parameters
for the TLCI and TLMF.
All correlated colour temperature calculations will use a data table of pre-calculated colour temperatures, and you can
control the precision of the data set. The software holds separate data sets for colour temperatures using 4 to 15
decimal places of precision. If you select output to a spreadsheet file, you will get extra data which shows how the
calculations work. The same is true for colour-difference calculations.
14
3 THE MATHEMATICS
3.1 Flow diagram of the TLCI processing
𝑅𝐶 = ∑ 𝑅𝜆 𝑅𝜆 𝑟𝜆 𝐺𝐶 = ∑ 𝑅𝜆 𝑅𝜆 𝑔𝜆 𝐵𝐶 = ∑ 𝑅𝜆 𝑅𝜆 𝑔𝜆 [3.2𝑎. 𝑏. 𝑐]
𝜆=380 𝜆=380 𝜆=380
… where λ is the wavelength of light in nanometers (nm), Pλ is the spectral power distribution of the light
source, whether Test (supplied in a text file *.lum) or Reference (*.ref derived from internal calculations or
from a text file *.lum), Rλ is the spectral reflectance of each colour sample in turn (derived from a text file
(*.smpl), and 𝑟 𝑔 𝑏 are the responsivity curves for RGB respectively (derived from a text file *.cam).
Followed by balancing. Balancing data (Rb, Gb, Bb) are obtained by colorimetric analysis for a flat colour
sample, i.e. with 100% reflectance at all wavelengths.
𝑅𝐶𝑏 = 𝑅𝐶 𝑅𝑏 𝐺𝐶𝑏 = 𝐺𝐶 𝐺𝑏 𝐵𝐶𝑏 = 𝐵𝐶 𝐺𝐵𝑏 [3.2𝑑. 𝑒. 𝑓]
Followed by a linear matrix Mat() (values are derived either internally, or from a text file *.mat, or by direct
numerical entry in Engineering mode) to optimise the colour performance and deliver RGB signals:
𝑅 𝑀𝑎𝑡(0,0) 𝑀𝑎𝑡(0,1) 𝑀𝑎𝑡(0,2) 𝑅𝐶𝑏
[𝐺 ] = [𝑀𝑎𝑡(1,0) 𝑀𝑎𝑡(1,1) 𝑀𝑎𝑡(1,2)] [𝐺𝐶𝑏 ] [3.2𝑔]
𝐵 𝑀𝑎𝑡(2,0) 𝑀𝑎𝑡(2,1) 𝑀𝑎𝑡(2,2) 𝐵𝐶𝑏
Note that white balancing is applied after matrix correction but before the application of the saturation control.
The saturation control functions as a secondary matrix:
𝑅𝑠 1 − 2𝑎 𝑎 𝑎 𝑅
[𝐺𝑠 ] = [ 𝑎 1 − 2𝑎 𝑎 ] [𝐺 ] [3.2ℎ]
𝐵𝑠 𝑎 𝑎 1 − 2𝑎 𝐵
… where 𝑎 = (1 − 𝑆𝑎𝑡𝑢𝑟𝑎𝑡𝑖𝑜𝑛⁄100)⁄3.
Followed by gamma correction (equations are derived from internal data, or from a text file *.gam, or by
direct numerical entry in Engineering mode). The equation can accommodate both the BBC formulae (in
15
which an offset is applied to the input) and the alternative formula (in which an offset is applied to the output).
The offsets are needed in order to ensure that the join between the power law part of the curve and the linear
part below the break point is tangential and smooth. Beware that many of the standard equations are not ideal
in that the join is either not tangential, or monotonic, or leaves missing video levels:
𝑠𝑙𝑜𝑝𝑒 𝑉, 𝑉 < 𝑏𝑟𝑒𝑎𝑘
𝑉′ = { 𝑉 − 𝑏 𝐿𝑎𝑤 [3.2𝑖]
(1 + 𝑎) ( ) − 𝑎, 𝑉 ≥ 𝑏𝑟𝑒𝑎𝑘
1−𝑏
The output of the ‘standard’ camera feeds the computer’s display directly, so you get to see the real colours (if the
display has the correct colorimetric properties). It also feeds the ‘standard’ display.
… where Gamma (derived from internal data or by direct numerical entry in Engineering mode) is assumed to
be greater than 1. This does not accommodate any erroneous setting of the display (e.g. mis-set black level or
white balance) or non-conformance with a pure power law.
Followed by colorimetric analysis to derive CIE tristimulus values for each colour as seen on the display:
𝑋 𝑋𝑌𝑍(0,0) 𝑋𝑌𝑍(0,1) 𝑋𝑌𝑍(0,2) 𝑅𝑑
[𝑌 ] = [𝑋𝑌𝑍(1,0) 𝑋𝑌𝑍(1,1) 𝑋𝑌𝑍(1,2)] [𝐺𝑑 ] [3.3𝑏]
𝑍 𝑋𝑌𝑍(2,0) 𝑋𝑌𝑍(2,1) 𝑋𝑌𝑍(2,2) 𝐵𝑑
… where the matrix XYZ() is derived by analysis of the chromaticity coordinates of the display primaries and
white point.
… where:
𝑣𝑎𝑟 116 2 16 24 3
( ) + , 𝑣𝑎𝑟 < ( )
𝑓 (𝑣𝑎𝑟) = 3 24 116 116 [3.4𝑏]
1⁄3
24 3
𝑣𝑎𝑟 , 𝑣𝑎𝑟 ≥ ( )
{ 116
… where the XwYwZw are the tristimulus values of the display white point.
16
∗ ∗
𝐶𝑇,𝑖 = √𝑎∗2 ∗2
𝑇,𝑖 + 𝑏𝑇,𝑖 𝐶𝑅,𝑖 ∗2
= √𝑎𝑅,𝑖 ∗2
+ 𝑏𝑅,𝑖 [3.4𝑒]
∗ ∗ ∗
𝐶𝑖 = (𝐶𝑇,𝑖 + 𝐶𝑅,𝑖 ) ⁄2 [3.4𝑓]
∗7
1 𝐶𝑖
𝑔𝑖 = 1 − √ ∗7 [3.4𝑔]
2 𝐶𝑖 + 257
( )
𝑎′ 𝑇,𝑖 = (1 + 𝑔𝑖 )𝑎∗𝑇,𝑖 ∗
𝑎′𝑅,𝑖 = (1 + 𝑔𝑖 )𝑎𝑅,𝑖 [3.4ℎ]
2 ∗2 2 ∗2
𝐶′ 𝑇,𝑖 = √𝑎′ 𝑇,𝑖 + 𝑏𝑇,𝑖 𝐶′𝑅,𝑖 = √𝑎′𝑅,𝑖 + 𝑏𝑅,𝑖 [3.4𝑖]
Note that the hue, h, is measured in degrees, not radians, and that the calculations must correctly take into
account the signs of a’ and b* to assign an angle within 0~360 degrees. Next, calculate means:
Note that the hue difference, Δh*, is measured in degrees, not radians, and that the difference must lie in the range -
180~+180 degrees. If the difference lies outside this range, the 180 must be subtracted from the larger of the two hue
angles and the mean and difference recomputed.
𝑇𝑖 = 1 − 0.17 𝑐𝑜𝑠(ℎ̅𝑖 − 30) + 0.24 𝑐𝑜𝑠(2ℎ̅𝑖 ) + 0.32 𝑐𝑜𝑠(3ℎ̅𝑖 + 6) − 0.20 𝑐𝑜𝑠(4ℎ̅𝑖 − 63) [3.4𝑜]
2
0.015(𝐿′𝑖 − 50)
𝑆𝐿,𝑖 = 1 + [3.4𝑝]
2
√20 + (𝐿′𝑖 − 50)
′7
𝐶𝑖
𝑅𝐶,𝑖 = 2√ ′7 [3.4𝑠]
𝐶𝑖 + 257
2
ℎ′𝑖 − 275
∆𝜃𝑇,𝑖 = 30 𝑒𝑥𝑝 (− ( ) ) [3.4𝑡]
25
17
′ ′
∆𝐶𝑖 = 𝐶𝑇,𝑖 − 𝐶𝑅,𝑖 [3.4𝑤]
ℎ 𝑇,𝑖 − ℎ𝑅,𝑖
∆𝐻𝑖 = 2 sin ( ) √𝐶′ 𝑇,𝑖 . 𝐶′𝑅,𝑖 [3.4𝑥]
2
∆𝐸𝑖 = √(∆𝐿𝑖 ′)2 + (∆𝐶𝑖 ′)2 + (∆𝐻𝑖 ′)2 + 𝑅𝑇,𝑖 . ∆𝐶𝑖′ . ∆𝐻𝑖 ′ [3.4𝑎𝑏]
…where the k values are weighting factors, usually unity. They can be varied to customise the metric,
affecting lightness, chroma and hue, respectively, and can be separately specified for each test colour on an
experimental basis. If they are varied from unity, then their values must be included in the name of the
system, e.g. CIEDE2000(2:1:1). For use in the TLCI-2012, all the k values are set to unity.
18
… and add or subtract 360 as required to make sure the results always lies between 0 and 360. Then a Chroma
magnitude value is calculated:
𝐶 = √𝐶𝑏 2 + 𝐶𝑟 2 [4𝑐]
Finally, the ratio of the individual R G and B values (linear, not gamma-corrected) are derived:
𝑅𝑡 𝐺𝑡 𝐵𝑡
𝑥𝑅 = 𝑥𝐺 = 𝑥𝐵 = [4𝑑]
𝑅𝑟 𝐺𝑟 𝐵𝑟
The table is sorted such that the hue angle increases monotonically.
For the simulation, the bitmap file is read, pixel-by-pixel, producing digital Rd Gd Bd values. These are converted to
analogue using the coding rules selected in the File menu, e.g.:
𝑅′𝑟 = 𝑅 ′ 𝑑 /255 𝑜𝑟 𝑅 ′ 𝑟 = (𝑅 ′ 𝑑 − 16)/219 𝑒𝑡𝑐 [4𝑒]
… for sRGB or Video coding. Then these values are used in the coding equations as above to produce Y’r Cr and Huer
values.
The transformation data table is then scanned to find the first Hue entry which is less than Huet. Then there are two
entries in the table, either side of the test pixel, from which data can be interpolated using the proportion p:
𝐻𝑢𝑒𝑟 − 𝐻𝑢𝑒(𝑖)
𝑝= [4𝑓]
𝐻𝑢𝑒(𝑖 + 1) − 𝐻𝑢𝑒(𝑖)
… where the ith entry is lower and the (i+1)th entry is higher. Then a scaling factor c is derived from the Chroma
levels:
𝐶𝑟
𝑐= [4𝑔]
𝐶(𝑖)(1 − 𝑝) + 𝐶(𝑖 + 1)𝑝
Using these, the ratios xR xG and xB are modified:
𝑥𝑅𝑟 = 1 + 𝑐(𝑥𝑅(𝑖)(1 − 𝑝) + 𝑐𝑅(𝑖 + 1)𝑝 − 1) 𝑒𝑡𝑐 [4ℎ]
If the luminaire analysis was of the TLMF, then another factor is needed, to simulate the offset white balance. This is
derived from the Y and RGB signal levels (linear, not gamma-corrected) resulting from the illumination of a neutral
reflector, for the test and reference illuminant:
𝑌𝑟𝑒𝑓 𝑅𝑡𝑒𝑠𝑡 𝑌𝑟𝑒𝑓 𝐺𝑡𝑒𝑠𝑡 𝑌𝑟𝑒𝑓 𝐵𝑡𝑒𝑠𝑡
𝑅𝑏𝑎𝑙 = 𝐺𝑏𝑎𝑙 = 𝐵𝑏𝑎𝑙 = [4𝑖]
𝑌𝑡𝑒𝑠𝑡 𝑅𝑟𝑒𝑓 𝑌𝑡𝑒𝑠𝑡 𝐺𝑟𝑒𝑓 𝑌𝑡𝑒𝑠𝑡 𝐵𝑟𝑒𝑓
… thus, for the TLMF:
𝑌𝑟𝑒𝑓 𝑅𝑡𝑒𝑠𝑡
𝑥𝑅𝑟 = (1 + 𝑐(𝑥𝑅(𝑖)(1 − 𝑝) + 𝑐𝑅(𝑖 + 1)𝑝 − 1)) 𝑒𝑡𝑐 [4𝑗]
𝑌𝑡𝑒𝑠𝑡 𝑅𝑟𝑒𝑓
For the processing, the input pixel values are linearised, using the value of Gamma for the system display:
𝑅 = 𝑅′𝐺𝑎𝑚𝑚𝑎 𝐺 = 𝐺′𝐺𝑎𝑚𝑚𝑎 𝐵 = 𝐵′𝐺𝑎𝑚𝑚𝑎 [4𝑘]
The output pixels are then calculated:
𝑅𝑡 = 𝑅𝑟 𝑥𝑅𝑟 𝐺𝑡 = 𝐺𝑟 𝑥𝐺𝑟 𝐵𝑡 = 𝐵𝑟 𝑥𝐵𝑟 [4𝑙]
… or, if the simulation is reversed (i.e. the BMP file is modified to undo the effect of the test illuminant):
𝑅𝑡 = 𝑅𝑟 /𝑥𝑅𝑟 𝐺𝑡 = 𝐺𝑟 /𝑥𝐺𝑟 𝐵𝑡 = 𝐵𝑟 /𝑥𝐵𝑟 [4𝑚]
These values are then gamma corrected using the display power law, and video coded according to the rules selected
in the File menu:
𝑅′ = 𝑅1/𝐺𝑎𝑚𝑚𝑎 𝐺′ = 𝐺 1/𝐺𝑎𝑚𝑚𝑎 𝐵′ = 𝐵1/𝐺𝑎𝑚𝑚𝑎 [4𝑛]
𝑅′𝑑 = 255𝑅′ 𝑜𝑟 𝑅′ 𝑑 = 16 + 219𝑅′ 𝑒𝑡𝑐 [4𝑜]
… and these values are saved in the output bitmap file.
19
5 SETUP CONDITIONS
Although the software is highly flexible, for general use all the operating parameters have been fixed according to the
recommendations in EBU Recommendation 137.
Thus for each operating parameter there is a specified value:
Test source: A measurement file of the spectral power distribution of the test source, measured from 380 to
760nm in steps of 5nm. The file must be plain text, with TAB separated values (nm TAB value) and must
have the correct identifying first line:
//Illuminant file
Note that, for TLMF calculations only, there can also be a lighting filter file. This must be of the same form,
but the identifying first line must be:
//Filter data file
… and it is the convolution of the data contents of these two files which will be used for the calculations.
Test samples: Colorchecker chart, using only the 18 coloured patches for calculation.
Reference source: a standard illuminant on the Planckian or Daylight locus, at the correlated colour
temperature (T) of the test illuminant. If T lies between P3400 and D5000, then the program will generate a
hypothetical reference using a linear interpolation between Daylight at 5000K and Planckian at 3400K, this
ensures that there is no discontinuity in the reference chromaticity locus, and is a reasonable way to deal with
mixed lighting.
Note that, for TLMF calculations, the reference is always a file, whether a measurement (lum) or reference
(ref) file. The camera will be white balanced to the reference, and not to the test file, to show the effect os
simultaneous use in the same scene.
Camera curves: EBU Standard Camera 2012
Linear matrix: optimised for these curves:
1.182 −0.209 0.027
[0.107 0.890 0.003] [5𝑎]
0.040 −0.134 1.094
Saturation control: 90%, therefore a=0.0333…:
𝑅𝑠 0.9333 … 0.0333 … 0.0333 … 𝑅
[𝐺𝑠 ] = [0.0333 … 0.9333 … 0.0333 …] [𝐺 ] [5𝑏]
𝐵𝑠 0.0333 … 0.0333 … 0.9333 … 𝐵
Gamma correction: ITU R. BT-709
Display gamma: 2.4
Display primaries: ITU R. BT-709
Colour difference metric: CIEDE2000
20
TLCI formulation:
100
𝑄= [5𝑐]
∆𝐸 ∗ 2.4
1+( )
3.16
… where ΔE* is the value returned by the colour difference metric. k is chosen such that the Qa value for a daylight
fluorescent tube delivers a value of 50, and p is chosen to compress high and low values and expand the middle,
critical, range.
21
6 LIGHTING FILTERS
The following filters are supplied as spectral data files, from data kindly supplied by LEE Lighting.
452 Sixteenth White Diffusion 721 Berry Blue LED 104 Deep Amber
500 Double New Colour Blue 722 Bray Blue LED 105 Orange
501 New Colour Robertson Blue 723 Virgin Blue LED 106 Primary Red
502 Half New Colour Blue 724 Ocean Blue LED 113 Magenta
503 Quarter New Colour Blue 725 Old Steel Blue LED 115 Peacock Blue
22
504 Waterfront Green 727 QFD Blue LED 116 Medium Blue-Breen
505 Sally Green 728 Steel Green LED 117 Steel Blue
506 Marlene 729 Scuba Blue LED 118 Light Blue
507 Madge 730 Liberty Green LED 119 Dark Blue
508 Midnight Maya 731 Dirty Ice Dark Version LED 126 Mauve
511 Bacon Brown 733 Damp Squib LED 128 Bright Pink
512 Amber Delight 735 Velvet Green LED 132 Medium Blue
513 Ice & a Slice 736 Twickenham Green LED 139 Primary Green
514 Double G & T 738 JAS Green LED 147 Apricot
525 Argent Blue 741 Mustard Yellow LED 158 Deep Orange
604 Full CT Eight Five 742 Bram Brown LED 164 Flame Red
LED 622 One&Eighth Digital CTO 744 Dirty White LED 180 Dark Lavender
LED 624 Full Digital CTO 746 Brown LED 181 Congo Blue
LED 626 SevenEighths Digital CTO 747 Easy White
LED 628 ThreeQuarter Digital CTO 748 Seedy Pink
642 Half Mustard Yellow 749 Hampshire Rose
643 Quarter Mustard Yellow 750 Durham Frost
650 Industry Sodium 763 Wheat
652 Urban Sodium 764 Sun Colour Straw
651 HI Sodium 765 Lee Yellow
700 Perfect Lavender 767 Oklahoma Yellow
701 Provence 768 Egg Yolk Yellow
702 Special Pale Lavender 770 Burnt Yellow
703 Cold Lavender 773 Cardbox Amber
704 Lily 774 Soft Amber Key 1
705 Lily Frost 775 Soft Amber Key 2
706 King Fals Lavender 776 Nectarine
707 Ultimate Violet 777 Rust
708 Cool Lavender 778 Millennium Gold
709 Electric Lilac 779 Bastard Pink
710 Spir Special Blue 780 AS Golden Amber
711 Cold Blue 781 Terry Red
712 Bedford Blue 787 Marius Red
713 J Winter Blue 789 Blood Red
714 Elysian Blue 790 Moroccan Pink
715 Cabana Blue 791 Moroccan Frost
716 Mikkel Blue 793 Vanity Fair
717 Shanklin Frost 794 Pretty n Pink
718 Half Shanklin Frost 795 Magical Magenta
719 Colour Wash Blue 797 Deep Purple
720 Durham Daylight Frost 798 Chrysalis Pink
23