From 4a2059693f03167d5ee07470a38c2bdaa4e3688a Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 22 Jan 2015 14:24:29 +0000 Subject: [PATCH] --- MagickCore/statistic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index e9b103712..6d2a45ca3 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -2387,8 +2387,8 @@ MagickExport Image *PolynomialImage(const Image *images, continue; if ((traits & UpdatePixelTrait) == 0) continue; - coefficient=(MagickRealType) terms[2*i]; - degree=(MagickRealType) terms[(i << 1)+1]; + coefficient=(MagickRealType) terms[2*j]; + degree=(MagickRealType) terms[(j << 1)+1]; polynomial_pixel[x].channel[i]+=coefficient* pow(QuantumScale*GetPixelChannel(image,channel,p),degree); } -- 2.40.0