Skip to content

Commit a77d8d9

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: MagickCore/feature.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width,
22882288
}
22892289
}
22902290
}
2291-
gamma=1.0/count;
2291+
gamma=PerceptibleReciprocal(count);
22922292
mean_location.x=gamma*sum_location.x;
22932293
mean_location.y=gamma*sum_location.y;
22942294
mean_pixel.red=gamma*sum_pixel.red;

0 commit comments

Comments
 (0)