From: Cristy Date: Thu, 18 Apr 2019 23:55:30 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1552 X-Git-Tag: 7.0.8-41~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a77d8d97f5a7bced0468f0b08798c83fb67427bc;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1552 --- diff --git a/MagickCore/feature.c b/MagickCore/feature.c index a0205ba15..a17a65b22 100644 --- a/MagickCore/feature.c +++ b/MagickCore/feature.c @@ -2288,7 +2288,7 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width, } } } - gamma=1.0/count; + gamma=PerceptibleReciprocal(count); mean_location.x=gamma*sum_location.x; mean_location.y=gamma*sum_location.y; mean_pixel.red=gamma*sum_pixel.red;