summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-12 13:26:46 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 13:26:46 +0100
commit11777d1eacac733dbfc5a7eef9337458a922f63e (patch)
treedaf97785bbca97d2345448e79e239c3d6e1233df /src
parenteec238a778d631b8549c640178e1ab28b07505f4 (diff)
Try non-linearised gamma of 2.4 for Rec 2020.
Some discussion of this on #892. Also influenced by discussions with Dennis (email Tue, 30 Jun 2015) on how the oft-quoted (e.g. by Wikipedia) gamma functions are camera transforms and not intended for uses like ours. Also see ITU-r BT1886 which talks about a gamma of 2.4.
Diffstat (limited to 'src')
-rw-r--r--src/colour_conversion.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc
index be5e999c..aa22a615 100644
--- a/src/colour_conversion.cc
+++ b/src/colour_conversion.cc
@@ -134,9 +134,8 @@ ColourConversion::rec1886_to_xyz ()
ColourConversion const &
ColourConversion::rec2020_to_xyz ()
{
- /* From Wikipedia */
static ColourConversion* c = new ColourConversion (
- shared_ptr<const TransferFunction> (new ModifiedGammaTransferFunction (1 / 0.45, 0.08145, 0.0993, 4.5)),
+ shared_ptr<const TransferFunction> (new GammaTransferFunction (2.4)),
YUV_TO_RGB_REC709,
Chromaticity (0.708, 0.292),
Chromaticity (0.170, 0.797),