]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 22 Jan 2015 14:24:29 +0000 (14:24 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 22 Jan 2015 14:24:29 +0000 (14:24 +0000)
MagickCore/statistic.c

index e9b103712cbfd03f040ac4d3d9d7ce94c45f7f8f..6d2a45ca35750307204893d04d810a6ba593bf8c 100644 (file)
@@ -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);
         }