]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 16 Nov 2017 01:18:38 +0000 (20:18 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 16 Nov 2017 01:18:38 +0000 (20:18 -0500)
MagickCore/compare.c

index 4fec572498a7ce5bcd115ed08e7c845214fc8497..37573eb7930a27fcb801df9fadd6250b75e129f2 100644 (file)
@@ -1039,10 +1039,8 @@ static MagickBooleanType GetNormalizedCrossCorrelationDistortion(
           q+=GetPixelChannels(reconstruct_image);
           continue;
         }
-      Sa=QuantumScale*(image->alpha_trait != UndefinedPixelTrait ?
-        GetPixelAlpha(image,p) : OpaqueAlpha);
-      Da=QuantumScale*(reconstruct_image->alpha_trait != UndefinedPixelTrait ?
-        GetPixelAlpha(reconstruct_image,q) : OpaqueAlpha);
+      Sa=QuantumScale*GetPixelAlpha(image,p);
+      Da=QuantumScale*GetPixelAlpha(reconstruct_image,q);
       for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
       {
         PixelChannel channel = GetPixelChannelChannel(image,i);