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

index 3c596eefa184eb61a24d7d3336b44218af178df9..5e09c3b7c712a479e33a4ad56a3c418e24f17726 100644 (file)
@@ -1135,8 +1135,8 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image,
       double
         difference;
 
-      difference=log10(fabs(reconstruct_moments[channel].I[i]))-
-         log10(fabs(image_moments[channel].I[i]));
+      difference=log10(fabs(reconstruct_moments[channel].I[i]-
+         image_moments[channel].I[i]));
       distortion[channel]+=difference*difference;
       distortion[CompositePixelChannel]+=difference*difference;
     }