]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authornicolas <nicolas@git.imagemagick.org>
Wed, 1 Aug 2012 20:03:04 +0000 (20:03 +0000)
committernicolas <nicolas@git.imagemagick.org>
Wed, 1 Aug 2012 20:03:04 +0000 (20:03 +0000)
MagickCore/enhance.c

index 0371dd0a9050d42a2572ea7d8f5c0e67c47e8c12..fcd65a8caebf5f63e242d4f67b4ab7847da3ce04 100644 (file)
@@ -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.