From: dirk Date: Tue, 25 Aug 2015 13:12:12 +0000 (+0200) Subject: Fixed getting the alpha value in GetNormalizedCrossCorrelationDistortion. X-Git-Tag: 7.0.1-0~672 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6530db8efcf87617c04c420f50c3c73898c97fe5;p=imagemagick Fixed getting the alpha value in GetNormalizedCrossCorrelationDistortion. --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index 07c24d2e8..00eacd21d 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -965,7 +965,7 @@ static MagickBooleanType GetNormalizedCrossCorrelationDistortion( Sa=QuantumScale*(image->alpha_trait != UndefinedPixelTrait ? GetPixelAlpha(image,p) : OpaqueAlpha); Da=QuantumScale*(reconstruct_image->alpha_trait != UndefinedPixelTrait ? - GetPixelAlpha(reconstruct_image,p) : OpaqueAlpha); + GetPixelAlpha(reconstruct_image,q) : OpaqueAlpha); for (i=0; i < (ssize_t) GetPixelChannels(image); i++) { PixelChannel channel=GetPixelChannelChannel(image,i);