From: nicolas Date: Wed, 12 Sep 2012 15:20:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4952 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f1584e2de2ddbffc64580032a4188258d1c04fd;p=imagemagick --- diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index 9adb1559b..fb08f8a84 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -3326,7 +3326,7 @@ MagickExport MagickBooleanType NormalizeImage(Image *image, See http://osdir.com/ml/video.image-magick.devel/2005-04/msg00006.html and http://www.cs.dartmouth.edu/farid/downloads/tutorials/fip.pdf. The limit of ScaledSigmoidal as a->0 is the identity, but a=0 gives a division by - zero. This is fixed above by exiting immediately when contrast is small, + zero. This is fixed below by exiting immediately when contrast is small, leaving the image (or colormap) unmodified. This appears to be safe because the series expansion of the logistic sigmoidal function around x=b is