From 6530db8efcf87617c04c420f50c3c73898c97fe5 Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 25 Aug 2015 15:12:12 +0200 Subject: [PATCH] Fixed getting the alpha value in GetNormalizedCrossCorrelationDistortion. --- MagickCore/compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.49.0