From 11777d1eacac733dbfc5a7eef9337458a922f63e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Aug 2016 13:26:46 +0100 Subject: 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. --- src/colour_conversion.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 (new ModifiedGammaTransferFunction (1 / 0.45, 0.08145, 0.0993, 4.5)), + shared_ptr (new GammaTransferFunction (2.4)), YUV_TO_RGB_REC709, Chromaticity (0.708, 0.292), Chromaticity (0.170, 0.797), -- cgit v1.2.3