From 4d6f54c3a7a51f103834ab91f9eb0559d8cb1ac6 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 28 Apr 2014 17:22:44 +0000 Subject: [PATCH] --- MagickCore/feature.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/feature.c b/MagickCore/feature.c index e4b570683..9ad10989c 100644 --- a/MagickCore/feature.c +++ b/MagickCore/feature.c @@ -2166,8 +2166,8 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width, } } gamma=1.0/count; - mean_location.x=gamma*sum_location.x; - mean_location.y=gamma*sum_location.y; + mean_location.x=MagickRound(gamma*sum_location.x): + mean_location.y=MagickRound(gamma*sum_location.y); mean_pixel.red=gamma*sum_pixel.red; mean_pixel.green=gamma*sum_pixel.green; mean_pixel.blue=gamma*sum_pixel.blue; -- 2.40.0