From: cristy Date: Sat, 23 Mar 2013 20:44:18 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4037 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fd9be6861ea71a4a6f86e903e6326e456158411;p=imagemagick --- diff --git a/MagickCore/effect.c b/MagickCore/effect.c index 9779d305a..7450535a0 100644 --- a/MagickCore/effect.c +++ b/MagickCore/effect.c @@ -3316,7 +3316,7 @@ MagickExport Image *SpreadImage(const Image *image,const double radius, % The format of the UnsharpMaskImage method is: % % Image *UnsharpMaskImage(const Image *image,const double radius, -% const double sigma,const double amount,const double threshold, +% const double sigma,const double gain,const double threshold, % ExceptionInfo *exception) % % A description of each parameter follows: @@ -3328,16 +3328,16 @@ MagickExport Image *SpreadImage(const Image *image,const double radius, % % o sigma: the standard deviation of the Gaussian, in pixels. % -% o amount: the percentage of the difference between the original and the +% o gain: the percentage of the difference between the original and the % blur image that is added back into the original. % -% o threshold: the threshold in pixels needed to apply the diffence amount. +% o threshold: the threshold in pixels needed to apply the diffence gain. % % o exception: return any errors or warnings in this structure. % */ MagickExport Image *UnsharpMaskImage(const Image *image,const double radius, - const double sigma,const double amount,const double threshold, + const double sigma,const double gain,const double threshold, ExceptionInfo *exception) { #define SharpenImageTag "Sharpen/Image" @@ -3435,7 +3435,7 @@ MagickExport Image *UnsharpMaskImage(const Image *image,const double radius, if (fabs(2.0*pixel) < quantum_threshold) pixel=(double) p[i]; else - pixel=(double) p[i]+amount*pixel; + pixel=(double) p[i]+gain*pixel; SetPixelChannel(unsharp_image,channel,ClampToQuantum(pixel),q); } p+=GetPixelChannels(image);