Skip to content

Commit b522d2d

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1552
1 parent d5c9a05 commit b522d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: magick/feature.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width,
23132313
}
23142314
}
23152315
}
2316-
gamma=1.0/count;
2316+
gamma=PerceptibleReciprocal(count);
23172317
mean_location.x=gamma*sum_location.x;
23182318
mean_location.y=gamma*sum_location.y;
23192319
mean_pixel.red=gamma*sum_pixel.red;

0 commit comments

Comments
 (0)