From 9c4e0544845ab1bb8c17b95e704ea563831f8cfe Mon Sep 17 00:00:00 2001 From: torger Date: Fri, 24 Jul 2015 21:29:51 +0200 Subject: [PATCH] issue 2850: make it truly srgb (was wrong curve segment gamma before) --- rtengine/curves.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/curves.cc b/rtengine/curves.cc index 02b509d58..d31b4ad06 100644 --- a/rtengine/curves.cc +++ b/rtengine/curves.cc @@ -340,7 +340,7 @@ void CurveFactory::curveBW ( LUTu & histogrambw, LUTu & outBeforeCCurveHistogrambw,//for Luminance ToneCurve & customToneCurvebw1, ToneCurve & customToneCurvebw2, int skip) { - const float gamma_ = Color::sRGBGamma; + const float gamma_ = Color::sRGBGammaCurve; const float start = expf(gamma_*logf( -0.055 / ((1.0/gamma_-1.0)*1.055 ))); const float slope = 1.055 * powf (start, 1.0/gamma_-1) - 0.055/start; const float mul = 1.055; @@ -634,7 +634,7 @@ void CurveFactory::curveToningLL ( bool & llctoningutili,const std::vector