From: cristy Date: Fri, 22 Feb 2013 02:20:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce31db426a6dab307fb4ce71c443b33036d4ef79;p=imagemagick --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index d5a57c6d6..5757dc3f1 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -662,9 +662,7 @@ static MagickBooleanType GetMeanErrorPerPixel(Image *image, status; double - alpha, area, - beta, maximum_error, mean_error; @@ -672,8 +670,6 @@ static MagickBooleanType GetMeanErrorPerPixel(Image *image, y; status=MagickTrue; - alpha=1.0; - beta=1.0; area=0.0; maximum_error=0.0; mean_error=0.0; @@ -726,8 +722,8 @@ static MagickBooleanType GetMeanErrorPerPixel(Image *image, (reconstruct_traits == UndefinedPixelTrait) || ((reconstruct_traits & UpdatePixelTrait) == 0)) continue; - distance=fabs((double) (alpha*Sa*p[i]-beta*Da*GetPixelChannel( - reconstruct_image,channel,q))); + distance=fabs((double) (Sa*p[i]-Da*GetPixelChannel(reconstruct_image, + channel,q))); distortion[i]+=distance; distortion[CompositePixelChannel]+=distance; mean_error+=distance*distance;