From 6ec4de14a381bedbe0a2a32d6b43bba98f57c27a Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 12 Feb 2017 15:58:13 -0500 Subject: [PATCH] ... --- MagickCore/statistic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index 5a9e9e45a..ac4c6fde9 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1984,12 +1984,12 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image, channel_statistics[channel].sum_fourth_power+=(double) p[i]*p[i]*p[i]* p[i]; channel_statistics[channel].area++; - histogram[GetPixelChannels(image)*ScaleQuantumToMap( - ClampToQuantum((double) p[i]))+channel]++; if ((double) p[i] < channel_statistics[CompositePixelChannel].minima) channel_statistics[CompositePixelChannel].minima=(double) p[i]; if ((double) p[i] > channel_statistics[CompositePixelChannel].maxima) channel_statistics[CompositePixelChannel].maxima=(double) p[i]; + histogram[GetPixelChannels(image)*ScaleQuantumToMap( + ClampToQuantum((double) p[i]))+i]++; channel_statistics[CompositePixelChannel].sum+=(double) p[i]; channel_statistics[CompositePixelChannel].sum_squared+=(double) p[i]*p[i]; -- 2.40.0