]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 9 Nov 2014 00:59:05 +0000 (00:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 9 Nov 2014 00:59:05 +0000 (00:59 +0000)
MagickCore/statistic.c

index 85bbfab52aca78513f28b02081dffd616fe241ba..846b640bb87a1281d12643ff03a85f209e1e48a7 100644 (file)
@@ -2066,7 +2066,7 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image,
       double
         count;
 
-      count=histogram[GetPixelChannels(image)*j+i]/area;
+      count=histogram[GetPixelChannels(image)*j+i]*area;
       channel_statistics[i].entropy+=-count*MagickLog10(count)/
         MagickLog10(MaxMap+1.0);
     }