From 7960a4dc4ca1e7f60506871461a747737e0aadc2 Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Sat, 30 Jul 2011 12:59:07 +0200 Subject: [PATCH] Fixed RL Deconv sharpening darkens image in special situations see issue 868 --- rtengine/ipsharpen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/ipsharpen.cc b/rtengine/ipsharpen.cc index 7a4d66acb..49568350c 100644 --- a/rtengine/ipsharpen.cc +++ b/rtengine/ipsharpen.cc @@ -118,7 +118,7 @@ void ImProcFunctions::deconvsharpening (LabImage* lab, float** b2) { #endif for (int i=0; iL[i][j] = lab->L[i][j]*p1 + /*CLIP*/(tmpI[i][j])*p2; + lab->L[i][j] = lab->L[i][j]*p1 + MAX(tmpI[i][j],0)*p2; } // end parallel