From 0a3c657edbb3a68e6af8d7601fe8b7a67876e732 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 2 Apr 2019 20:24:02 +0200 Subject: [PATCH] Random artifacts in Exposure > Show Structure newlocallab, fixes #5259 --- rtengine/iplocallab.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 09b515514..7823c3e53 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -6167,7 +6167,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o int spotSi = rtengine::max(1 + 2 * max(1, lp.cir / sk), 5); - if (bfw > 2 * spotSi && bfh > 2 * spotSi && lp.struexp > 0.f) { + if (bfw > 2 * spotSi && bfh > 2 * spotSi && lp.struexp >= 0.f) { blend2(bfw, bfh); ImProcFunctions::blendstruc(bfw, bfh, bufexporig.get(), 3.f / (sk * 1.4f), lp.struexp, blend2, sk, multiThread); @@ -6495,7 +6495,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o } const int spotSi = std::max(1 + 2 * max(1, lp.cir / sk), 5); - const bool blend = bfw > 2 * spotSi && bfh > 2 * spotSi && lp.struco > 0.f; + const bool blend = bfw > 2 * spotSi && bfh > 2 * spotSi && lp.struco >= 0.f; if (blend) { blend2(bfw, bfh);