From: anthony Date: Wed, 19 May 2010 03:50:26 +0000 (+0000) Subject: minor bug X-Git-Tag: 7.0.1-0~9431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1cf9465864144e8b8043d522906c1e47bbf6192;p=imagemagick minor bug --- diff --git a/magick/morphology.c b/magick/morphology.c index af05c7fae..fad4fc65a 100644 --- a/magick/morphology.c +++ b/magick/morphology.c @@ -1075,7 +1075,7 @@ MagickExport KernelInfo *AcquireKernelBuiltIn(const KernelInfoType type, A; if ( args->rho < 1.0 ) - kernel->width = GetOptimalKernelWidth1D(args->rho,sigma); + kernel->width = (GetOptimalKernelWidth1D(args->rho,sigma)-1)/2+1; else kernel->width = (unsigned long)args->rho; kernel->x = kernel->y = 0;