From a164d0e7cc36d2a2b1d76fa5cd56409268ccafdd Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 1 Aug 2012 20:03:04 +0000 Subject: [PATCH] --- MagickCore/enhance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index 0371dd0a9..fcd65a8ca 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -3388,8 +3388,8 @@ MagickExport MagickBooleanType SigmoidalContrastImage(Image *image, /* Scaled sigmoidal formula with better 'contrast=0' or * 'flatline' handling (greyscale): * - * (1/(1+exp(a*(b-u))) - (1/(1+exp(a*b)) + 1/(1+exp(a*(b-1))))/2 ) - * / (1/(1+exp(a*(b-1))) - 1/(1+exp(a*b)) + epsilon ) + 0.5 + * ( 1/(1+exp(a*(b-u))) - (1/(1+exp(a*b)) + 1/(1+exp(a*(b-1))))/2 ) + * / ( 1/(1+exp(a*(b-1))) - 1/(1+exp(a*b)) + epsilon ) + 0.5 * * "+ 0.5" is to center things around the middle of the Quantum * range. -- 2.40.0