From: cristy Date: Fri, 24 Jan 2014 01:39:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2801 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc9136b1132376a42553f9e41d86791fdcca16d4;p=imagemagick --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index 5c15e5f06..8087f92cd 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -1143,7 +1143,7 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image, blur_reconstruct=DestroyImage(blur_reconstruct); return(MagickFalse); } - for (i=0; i < 8; i++) + for (i=0; i < 7; i++) { ssize_t channel; @@ -1151,8 +1151,6 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image, /* Compute sum of moment differences squared. */ - if (i == 2) - continue; /* I3 is not independent of other moments */ for (channel=0; channel < MaxPixelChannels; channel++) { double @@ -1201,7 +1199,7 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image, image_moments=(ChannelMoments *) RelinquishMagickMemory(image_moments); return(MagickFalse); } - for (i=0; i < 8; i++) + for (i=0; i < 7; i++) { ssize_t channel; @@ -1209,8 +1207,6 @@ static MagickBooleanType GetPerceptualHashDistortion(const Image *image, /* Compute sum of moment differences squared. */ - if (i == 2) - continue; /* I3 is not independent of other moments */ for (channel=0; channel < MaxPixelChannels; channel++) { double