Professional Documents
Culture Documents
/XPLQDQFHSUHVHUYLQJ&RORXU&RQYHUVLRQ
Florian Schweiger
BBC Research & Development
Tim Borer
BBC Research & Development
Manish Pindoria
BBC Research & Development
Abstract. With the advent of new television standards introducing UHD and HDR, backward compat-
ibility with older devices becomes an issue.
We propose a method for converting footage produced in BT.2100 colorimetry to a BT.709 compliant
representation. The process preserves each pixel's luminance and is fully reversible.
Technically, our approach determines the exact polygonal shape of the effective BT.2100 and
BT.709 gamuts at a given luminance and maps colours from one to the other by desaturating them.
Keywords. Ultra-high-definition TV, colour conversion, BT.2100, BT.2020, BT.709, High Dynamic
Range
The authors are solely responsible for the content of this technical presentation. The technical presentation does not necessarily reflect the
official position of the Society of Motion Picture and Television Engineers (SMPTE), and its printing and distribution does not constitute an
endorsement of views which may be expressed. This technical presentation is subject to a formal peer-review process by the SMPTE Board
of Editors, upon completion of the conference. Citation of this work should state that it is a SMPTE meeting paper. EXAMPLE: Author's Last
Name, Initials. 2011. Title of Presentation, Meeting name and location.: SMPTE. For information about securing permission to reprint or
reproduce a technical presentation, please contact SMPTE at jwelch@smpte.org or 914-761-1100 (3 Barker Ave., White Plains, NY 10601).
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
,QWURGXFWLRQ
At the time of writing this paper, new television standards are being developed that will intro-
duce High Dynamic Range (HDR) as part of Ultra High Definition (UHD) television. An essential
part of these, and indeed every television standard, is the representation of colour.
With every subsequent standard, the range of representable colours increases, which calls for
methods to convert between new and existing formats. A method is needed to enable backward
compatibility with existing systems but also be able to combine new and old footage in pro-
grammes.
With the Hybrig Log Gamma transfer characteristic, which is part of the ITU-R Recommendation
BT.21001 standard [1], backward compatibility for HDR signals is elegantly provided by adjust-
ing the luminance with a carefully chosen transfer characteristic appropriate for arbitrary dis-
plays.
This paper is concerned with the complementary challenge of down-converting chromaticities
from wide-gamut sources without altering WKHFRORXUV¶ luminance. Our approach draws on work
on limiting YUV signals [2] extending it with reversible soft-clipping.
&RORXU6SDFHV
In order to quantify colours systematically, a representation is required that covers and can dis-
tinguish between all available colours. Naturally, as human visual perception is based on three
distinct kinds of receptors, such a representation needs to be three-dimensional.
1
Hereafter ITU recommendations will be denoted as, e.g., BT.2100 for brevity.
© 2016 Society of Motion Picture & Television Engineers® (SMPTE®) 2
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
ܺ ͲǤ͵ ͲǤͳͶͷ ͲǤͳͻ ܴଶଵ ͲǤͶͳʹ ͲǤ͵ͷͺ ͲǤͳͺͳ ܴଽ
ܻ ൩ ൌ ͲǤʹ͵ ͲǤͺ ͲǤͲͷͻ൩ ܩଶଵ ൩ ൌ ͲǤʹͳ͵ ͲǤͳͷ ͲǤͲʹ൩ ܩଽ ൩
ܼ Ͳ ͲǤͲʹͺ ͳǤͲͳ ܤଶଵ ͲǤͲͳͻ ͲǤͳͳͻ ͲǤͻͷͳ ܤଽ
The tristimulus value ܻ is referred to as luminance and can be considered an ordinal measure of
DFRORXU¶VSHUFHLYHGEULJKWQHVV, ie., perceived brightness increases monotonically with lumi-
nance but the relationship is not linear. It is important to note that the RGB values in Eq. 1 rep-
resent linear light signals, either scene referred as captured by a camera, or display referred as
output by a monitor. The two representations differ by a non-linearity referred to as Opto-Optical
Transfer Function (OOTF) which makes for the rendering intent [1]. Our colour conversion
method can be applied to both scene and display referred signals depending on application.
,QRUGHUWRH[SUHVV³FRORXUIXOQHVV´LQGHSHQGHQWly of luminance, chromaticities ݔand ݕare de-
fined by normalising two of the tristimuli:
ܺ ܻ
ݔൌ DQG ݕൌ
ܻܼܺ ܻܼܺ
In an attempt to achieve better perceptual uniformity, that is equally perceptible differences
across the entire range of colours, a modified set of chromaticities has been defined as part of
the CIE 1976 standard [6]:
Ͷܺ ͻܻ
ݑԢ ൌ DQGݒԢ ൌ
ܺ ͳͷܻ ͵ܼ ܺ ͳͷܻ ͵ܼ
Note that ݑǯ and ݒǯ are linked to ݔand ݕby a projective transformation which preserves colline-
arity, i.e., straight lines in one space remain straight in the other although distance ratios will
change between spaces. Projections as used in the following sections can hence be performed
equivalently in either space. We will use CIE 1976 ݑǯݒǯ chromaticities throughout this paper.
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
Figure 1: Gamut defined by the primaries of the BT.2100 and BT.709 standards in comparison
to the CIE 1976 gamut containing all visible colours
/XPLQDQFHSUHVHUYLQJ&RQYHUVLRQ
We propose a simple, yet effective colour conversion approach which addresses the issue that,
in real systems, chromaticity and luminance are not independent, a problem which is especially
evident at high luminance levels.
In Figure 1, given a source colour with chromaticities ܿଶଵ ൌ ሾݑԢଶଵ ǡ ݒԢଶଵ ሿ outside the BT.709
gamut, the straightforward approach to map ܿଶଵ to a legal BT.709 colour is by projecting it to-
wards the common whitepoint ݓonto ଽ on the BT.709 boundary. This corresponds to a de-
saturation which attenuates vivid colours while leaving their hue2 and luminance unchanged.
2
Since CIE 1931 XYZ space is not perceptually uniform, lines of constant hue are not entirely
straight, as recently confirmed in [8]. The resulting hue shifts only become perceptible in
extreme cases.
© 2016 Society of Motion Picture & Television Engineers® (SMPTE®) 4
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
be achieved (without colour components exceeding one) diminishes. At peak luminance ܻ ൌ ͳ
only achromatic white is possible.
Figure 2 shows the effectively available gamut of both standards for selected luminance values
of ൌ ͲǤͳͷ and ൌ ͲǤʹͷǤ As can be seen, colours close to the primaries cease to be represent-
able. For BT.2100 and BT.709, blues are most affected by this.
To understand why certain bright colours become unattainable, consider the three-dimensional
representation of both colour spaces in Figure 3. The legal range for the R, G, and B compo-
nents is between zero and one, and all possible colours thus fall inside the so defined cube.
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
Figure 3: RGB cubes for BT.709 and BT.2100 with constant luminance planes intersecting them
Colours sharing the same luminance lie on a plane defined by the second rows of Eq. 1, e.g.,
ܻ ൌ ͲǤʹͳ͵ ή ܴଽ ͲǤͳͷ ή ܩଽ ͲǤͲʹ ή ܤଽ , where ܻ corresponds to the distance of this plane
to the origin. For low enough values of ܻ, the constant-luminance plane intersects the RGB
cube in a triangle which, after applying Eqs. 2 and 3, leads to the typical trianglular gamut
shown in Figure 1. With increasing ܻ, the plane moves further and further from the RGB origin
and its intersection will skip first the blue, then the red and eventually the green corner of the
cube, resulting in a quadrilateral or even pentagonal gamut. For luminance values close to one,
the gamut becomes again triangular, albeit ³IOLSSHG´LHZLWKits corners representing the sec-
ondary colours cyan, magenta and yellow. The three luminance planes plotted in Figure 3 corre-
spond to the gamuts presented in Figure 1 and Figure 2.
To reflect this effect in our method, instead of using the full target gamut, we propose to project
source chromaticities onto the boundary of the effective gamut as defined by the FRORXU¶V lumi-
nance. Performing the projection in either &,([\RU&,(X¶Y¶VSDce yields identical
results.
Reversible Soft-clipping
The projection method described so far is non-reversible. All source colours outside the target
gamut that lie on a straight line through the whitepoint are mapped onto the same output colour
on the boundary of the effective target gamut. This means that variations in saturation outside
the BT.709 gamut are completely lost. As so often in video processing, soft-clipping may cap-
ture the original artistic intent better. Soft-clipping preserves at least some of the variation for
very bright colours. It also means that the BT.709 colour space may be more accurately ex-
panded back to BT.2100 should this be required.
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
ߙ ଶ
ߙ
ݎۓെ ሺߚ െ ߙሻଶ ቂߚ െ ඥߚ ሺߙ െ ߚሻሺ ݎ ߚ െ ͳሻቃ ͳ െ ߚ ൏ ݎ ͳ ߙ ߚ ଶ
ۖ ߙ ߙ
݂ሺݎሻ ൌ ଶ
ݎ ͳ െ ߚ ൏ ݎ ͳ െ ߚ ଶ
۔ ߚ ߚ
ۖ ߙ ߙ
ଶ
ͳ ͳ െ ߚ ൏ ݎ ͳ ߙ ଶ
ە ߚ ߚ
The requirements for the soft-clipping function are that it should smoothly extend the identity
function and saturate at one. It is debatable whether the continuation at the high end should be
smooth as well as this implies a vanishing derivative and thus infinite compression for high val-
ues, which is disadvantageous in terms of reversibility. We have experimented with different
functions, including polynomial, exponential, logarithmic and circular arc extensions. For this
work, we have chosen a quadratic Bézier curve for its flexibility to control the precise extent of
the roll-off region.
The quadratic Bézier extension defined in Eq. 4 is shown in Figure 4. The parameters ߙ and ߚ
control the extent of the IXQFWLRQ¶Vroll-off. More specifically, ߙ will be set such that the boundary
of the source gamut maps exactly onto the boundary of the target gamut, and ߚ specifies how
much of the target gamut should be sacrificed to accommodate out-of-gamut source colours (cf.
Figure 5). Increasing ߚ facilitates reversibility as the soft-clipping function imposes less com-
pression, but it also reduces the fidelity of colours on the boundary of the target gamut that
would otherwise be perfectly representable. Ideally, ߚ should be set as function of the output bit
depth, but in this work, we use a fixed value of ߚ ൌ ͲǤʹ.
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
Algorithm
The complete algorithm for luminance-preserving colour conversion, including soft-clipping, can
be summarised as follows (cf. Figure 5):
1. For input colour, compute luminance3 ܻ and chromaticities4 ܿଶଵ ൌ ሾݑԢଶଵ ǡ ݒԢଶଵ ሿ
2. Detemine effective source and target gamuts at given ܻ
3. Compute projections ଶଵ and ଽ onto effective source and target gamuts
4. Set roll-off parameter ߙ ൌ ݓ ଶଵ Τതതതതതതതതത
തതതതതതതതതത ݓଽ െ ͳ
5. Set soft-clipping margin to appropriate value ߚ ൌ ͲǤʹ
6. Compute output chromaticities as ܿଽ ൌ ݓ ݓ തതതതതതതതത
ଽ ή ݂ሺݓ ଶଵ Τതതതതതതതതത
തതതതതതതതതത ݓଽ ሻ
7. Determine output RGB values from ܻ and ܿଽ
A source colour ܿଶଵ outside the target gamut is moved toward the white point ݓonto ܿଽ in-
sided the target gamut. Within the hatched area defined by the distance ratio ሺͳ െ ߚሻ ߚ , col-
ours remain unchanged.
3
The linear luminance should be calculated either as scene referred or display referred depend-
ing on application.
4
Working in CIE 1976 X¶Y¶UDWKHUWKDQCIE 1931 xy space has the advantage that the effective
source and target gamuts are better aligned, and less compression is introduced during soft-
clipping.
© 2016 Society of Motion Picture & Television Engineers® (SMPTE®) 8
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.
Results
We implemented our approach as a 3D lookup table with 33x33x33 entries and applied it to a
range of display referred linear-light HDR signals from various sources. In an HLG-based
demonstration to the Advanced Television Systems Committee in June 2016, the results were
received as very natural and without noticeable artefacts. For some content, we did, however,
notice that extremely saturated bright yellows do suffer from hue shifts, which will require further
investigation and improvement of the basic algorithm described here.
&RQFOXVLRQ
We have presented a method to convert from a wide-gamut colour space to a colour space with
narrower gamut while preserving the luminance of the input. Our approach is reversible in that
there is a one-to-one mapping between the input and output colour values. For representations
with limited precision, it remains to be investigated how quatisation affects the reversibility in
practice. The free soft-clipping parameter of our method will need to be adjusted accordingly.
The results of our approach applied to the conversion of HDR signals from BT.2100 to BT.709
have been assessed visually and appear to maintain the artistic intent of the source material
without noticeable artefacts or major hue changes. Comparative subjective tests are yet to be
carried out.
References
[1] Rec. ITU-R BT.2100-³,PDJHSDUDPHWHUYDOXHVIRUhigh dynamic range television for
XVHLQSURGXFWLRQDQGLQWHUQDWLRQDOSURJUDPPHH[FKDQJH´-XO.
[2] Devereux, V. G. "Limiting of YUV digital video signals," BBC R&D White Paper, 1987.
[3] Rec. ITU-R BT.601-³6WXGLRHQFRGLQJSDUDPHWHUVRIGLJLWDOWHOHYLVLRQ for standard 4:3
DQGZLGHVFUHHQDVSHFWUDWLRV´0DU
[4] Rec. ITU-R BT.709-³3DUDPHWHUYDOXHVIRUWKH+'79VWDQGDUGVIRUSURGXFWLRQDQGLQ
ternational programme exchange,´-XQH.
[5] Rec. ITU-R BT.2020-³3DUDPHWHUYDOXHVIRUXOWUD-high definition television systems for
production and international programme exchange," Oct. 2015.
[6] &3R\QWRQ³'LJLWDOYLGHRDQG+'$OJRULWKPVDQG,QWHUIDFHV´(OVHYLHU
[7] Rec. ITU-5%7³Colour conversion from Recommendation ITU-R BT.709 to Rec-
ommendation ITU-5%7´2FW.
[8] Dolby, "ICtCp Dolby White Paper´KWWSZZZGROE\FRPXVHQWHFKQRORJLHVGROE\-vi-
sion/ICtCp-white-paper.pdf, retrieved 2016-09-16.
Authorized licensed use limited to: University of Illinois. Downloaded on March 21,2017 at 00:56:20 UTC from IEEE Xplore. Restrictions apply.