From bdfeb76fa5783ac84f1e147aa0bfd4f3064244ec Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 2 Apr 2019 15:26:53 +0200 Subject: [PATCH] Fix two bugs in locallab, #5246 --- rtengine/iplocallab.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 0e358a6c9..2c51e5716 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -1080,7 +1080,7 @@ void ImProcFunctions::exlabLocal(const local_params& lp, int bfh, int bfw, LabIm const float hlfactor = (2 * L < MAXVALF ? hltonecurve[2 * L] : CurveFactory::hlcurve(exp_scale, comp, hlrange, 2 * L)); L *= hlfactor; //shadow tone curve - const float shfactor = 0.5f * shtonecurve[2 * L]; + const float shfactor = shtonecurve[2 * L]; //tonecurve L *= shfactor; lab->L[ir][jr] = 0.5f * tonecurve[2.f * L]; @@ -6386,7 +6386,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o bufmaskblurexp->a[ir][jr] = kmaskC + kmaskH; bufmaskblurexp->b[ir][jr] = kmaskC + kmaskH; (*ble)[ir][jr] = LIM01(bufmaskblurexp->L[ir][jr] / 32768.f); - (*guid)[ir][ir] = LIM01(bufexporig->L[ir][jr] / 32768.f); + (*guid)[ir][jr] = LIM01(bufexporig->L[ir][jr] / 32768.f); }