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