From 0a37a26cf8bd7be5980cb2a0c613533d7c515797 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 5 May 2019 13:33:02 +0200 Subject: [PATCH] remove CLIPLOC #define --- rtengine/iplocalcontrast.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtengine/iplocalcontrast.cc b/rtengine/iplocalcontrast.cc index e9a7032e6..1ca24799d 100644 --- a/rtengine/iplocalcontrast.cc +++ b/rtengine/iplocalcontrast.cc @@ -30,7 +30,6 @@ #include "gauss.h" #include "improcfun.h" #include "procparams.h" -#define CLIPLOC(x) LIM(x,0.f,32767.f) namespace rtengine { @@ -66,7 +65,7 @@ void ImProcFunctions::localContrast(LabImage *lab, float **destination, const Lo bufval *= (bufval > 0.f) ? light : dark; } - destination[y][x] = CLIPLOC(std::max(0.0001f, lab->L[y][x] + bufval)); + destination[y][x] = LIM(lab->L[y][x] + bufval, 0.0001f, 32767.f); } } }