From db888661df31ca8bed2b6841d2d575bf2e3697d0 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 12 Feb 2017 11:26:46 -0500 Subject: [PATCH] ... --- MagickCore/statistic.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index bc7e1306c..27660ea16 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1410,8 +1410,6 @@ MagickExport ChannelMoments *GetImageMoments(const Image *image, PixelTrait traits=GetPixelChannelTraits(image,channel); if (traits == UndefinedPixelTrait) continue; - if ((traits & UpdatePixelTrait) == 0) - continue; M00[channel]+=QuantumScale*p[i]; M00[MaxPixelChannels]+=QuantumScale*p[i]; M10[channel]+=x*QuantumScale*p[i]; @@ -1468,8 +1466,6 @@ MagickExport ChannelMoments *GetImageMoments(const Image *image, PixelTrait traits=GetPixelChannelTraits(image,channel); if (traits == UndefinedPixelTrait) continue; - if ((traits & UpdatePixelTrait) == 0) - continue; M11[channel]+=(x-centroid[channel].x)*(y-centroid[channel].y)* QuantumScale*p[i]; M11[MaxPixelChannels]+=(x-centroid[channel].x)*(y-centroid[channel].y)* @@ -1808,8 +1804,6 @@ MagickExport MagickBooleanType GetImageRange(const Image *image,double *minima, PixelTrait traits=GetPixelChannelTraits(image,channel); if (traits == UndefinedPixelTrait) continue; - if ((traits & UpdatePixelTrait) == 0) - continue; if (row_initialize != MagickFalse) { row_minima=(double) p[i]; @@ -1964,7 +1958,7 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image, { PixelChannel channel=GetPixelChannelChannel(image,i); PixelTrait traits=GetPixelChannelTraits(image,channel); - if ((traits & UpdatePixelTrait) == 0) + if (traits == UndefinedPixelTrait) continue; if (channel_statistics[channel].depth != MAGICKCORE_QUANTUM_DEPTH) { -- 2.50.1