From 99e5cbffdd7295b1dca99e75bbd615347d4a8554 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 5 May 2025 18:10:53 +0200 Subject: [PATCH] Use log10 again instead of PerceptibleLog10. --- MagickCore/statistic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index a6ed0df8a7..386cb5ef24 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1812,7 +1812,7 @@ MagickExport ChannelPerceptualHash *GetImagePerceptualHash(const Image *image, for (channel=0; channel <= MaxPixelChannels; channel++) for (j=0; j < MaximumNumberOfImageMoments; j++) perceptual_hash[channel].phash[i][j]= - (-PerceptibleLog10(moments[channel].invariant[j])); + (-log10(moments[channel].invariant[j])); moments=(ChannelMoments *) RelinquishMagickMemory(moments); } colorspaces=DestroyString(colorspaces); @@ -2250,7 +2250,7 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image, if (histogram[(ssize_t) GetPixelChannels(image)*j+i] > 0.0) number_bins++; area=PerceptibleReciprocalLD(channel_statistics[channel].area); - number_bins=PerceptibleReciprocalLD((long double) PerceptibleLog10(number_bins)); + number_bins=PerceptibleReciprocalLD((long double) log10(number_bins)); for (j=0; j <= (ssize_t) MaxMap; j++) { double @@ -2258,7 +2258,7 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image, count; count=(double) (area*histogram[(ssize_t) GetPixelChannels(image)*j+i]); - entropy=-count*PerceptibleLog10(count)*number_bins; + entropy=-count*log10(count)*number_bins; channel_statistics[channel].entropy+=(long double) entropy; channel_statistics[CompositePixelChannel].entropy+=((long double) entropy/ GetPixelChannels(image));