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

index ee440915d6c656607fd4bf2b4d5528451c873c0c..0371dd0a9050d42a2572ea7d8f5c0e67c47e8c12 100644 (file)
@@ -3389,9 +3389,9 @@ MagickExport MagickBooleanType SigmoidalContrastImage(Image *image,
         * '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 )
+         * / (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
+        * "+ 0.5" is to center things around the middle of the Quantum
         * range.
         *
         * "+epsilon" is to allow a=0 without division by zero.