count;
count=area*histogram[GetPixelChannels(image)*j+i];
- if (number_bins > MagickEpsilon)
- {
- channel_statistics[channel].entropy+=-count*MagickLog10(count)/
- MagickLog10(number_bins);
- channel_statistics[CompositePixelChannel].entropy+=-count*
- MagickLog10(count)/MagickLog10(number_bins)/
- GetPixelChannels(image);
- }
+ channel_statistics[channel].entropy+=-count*MagickLog10(count)*
+ PerceptibleReciprocal(MagickLog10(number_bins));
+ channel_statistics[CompositePixelChannel].entropy+=-count*
+ MagickLog10(count)*PerceptibleReciprocal(MagickLog10(number_bins))/
+ GetPixelChannels(image);
}
}
histogram=(double *) RelinquishMagickMemory(histogram);
MAGICK_VERSION=7.0.7-25
-MAGICK_GIT_REVISION=23162:29064ef33:20180303
+MAGICK_GIT_REVISION=23178:009e5556d:20180304
# Substitute library versioning