diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-12 13:26:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 13:26:46 +0100 |
| commit | 11777d1eacac733dbfc5a7eef9337458a922f63e (patch) | |
| tree | daf97785bbca97d2345448e79e239c3d6e1233df /src | |
| parent | eec238a778d631b8549c640178e1ab28b07505f4 (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.cc | 3 |
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), |
