From a58376021b1300f415597ea0a8cda4604b317ea4 Mon Sep 17 00:00:00 2001 From: Desmis Date: Sun, 10 Jan 2021 10:16:33 +0100 Subject: [PATCH] Fixed too small spot in Tone mapping --- rtengine/iplocallab.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 3241e93e9..a2e5ab378 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -12235,7 +12235,8 @@ void ImProcFunctions::Lab_Local( const int bfh = yend - ystart; const int bfw = xend - xstart; - if (bfw >= mSP && bfh >= mSP) { + if (bfw >= mDEN && bfh >= mDEN) { + // printf("OK TM\n"); array2D buflight(bfw, bfh); JaggedArray bufchro(bfw, bfh); std::unique_ptr bufgb(new LabImage(bfw, bfh));