From de30721734a52a930fd6a3d8a51a82c2a1ec5d9a Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 15 Feb 2019 19:52:28 -0500 Subject: [PATCH] ... --- MagickCore/statistic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index 424ee6f27..504999dc4 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1988,6 +1988,11 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image, register ssize_t i; + if (GetPixelReadMask(image,p) <= (QuantumRange/2)) + { + p+=GetPixelChannels(image); + continue; + } for (i=0; i < (ssize_t) GetPixelChannels(image); i++) { PixelChannel channel = GetPixelChannelChannel(image,i); -- 2.40.0