]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 9 Jan 2014 14:38:12 +0000 (14:38 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 9 Jan 2014 14:38:12 +0000 (14:38 +0000)
MagickCore/compare.c

index aeba1a1bc076551781eb18f55f13c93c734a5251..3c596eefa184eb61a24d7d3336b44218af178df9 100644 (file)
@@ -1125,6 +1125,11 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image,
     ssize_t
       channel;
 
+    /*
+      Compute sum of moment differences squared.
+    */
+    if (i == 2)
+      continue;  /* I3 is not independent of other moments */
     for (channel=0; channel < MaxPixelChannels; channel++)
     {
       double