From 5401eb3a4ebaa2fae2383c0b58a85b230211d48d Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 9 Jan 2014 14:38:12 +0000 Subject: [PATCH] --- MagickCore/compare.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.1