]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1552
authorCristy <mikayla-grace@urban-warrior.org>
Thu, 18 Apr 2019 23:55:30 +0000 (19:55 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Thu, 18 Apr 2019 23:55:30 +0000 (19:55 -0400)
MagickCore/feature.c

index a0205ba158c51d11249faca215b04fadb7bec3a6..a17a65b22b727f91495a07370f02cfb291aab405 100644 (file)
@@ -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;