From: nicolas Date: Wed, 1 Aug 2012 20:03:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a164d0e7cc36d2a2b1d76fa5cd56409268ccafdd;p=imagemagick --- 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.