From 64297ff02131ca4ae1b5ff50964585552d68d31f Mon Sep 17 00:00:00 2001 From: jdc Date: Tue, 26 Mar 2013 06:32:36 +0100 Subject: [PATCH] Fix Colored pixel artifacts when using Edges issue1799 --- rtengine/ipsharpen.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rtengine/ipsharpen.cc b/rtengine/ipsharpen.cc index c63930fc2..60c066967 100644 --- a/rtengine/ipsharpen.cc +++ b/rtengine/ipsharpen.cc @@ -314,7 +314,8 @@ void ImProcFunctions::MLsharpen (LabImage* lab) { float templab; int iii,kkk; width2 = 2*width; - const float epsil=0.001f;//prevent divide by zero + const float epsil=0.01f;//prevent divide by zero + const float eps2=0.001f;//prevent divide by zero float amount; amount = params->sharpenEdge.amount / 100.0f; if (amount < 0.00001f) @@ -353,12 +354,12 @@ void ImProcFunctions::MLsharpen (LabImage* lab) { for(j=2; j