From: cristy Date: Thu, 9 Jan 2014 14:38:12 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2928 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5401eb3a4ebaa2fae2383c0b58a85b230211d48d;p=imagemagick --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index aeba1a1bc..3c596eefa 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -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