From: cristy Date: Fri, 21 Dec 2012 19:27:44 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee3f752fa83a8a26f8db98d8cb1af21fa1e93393;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index ab46fccfa..cb313b201 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -184,8 +184,6 @@ MagickExport Image *AdaptiveThresholdImage(const Image *image, (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickSignature); - if ((width % 2) == 0) - ThrowImageException(OptionError,"KernelWidthMustBeAnOddNumber"); threshold_image=CloneImage(image,image->columns,image->rows,MagickTrue, exception); if (threshold_image == (Image *) NULL) diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 9d75c3b78..0c2be9ddf 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -1949,8 +1949,8 @@ static void CLISimpleOperatorImage(MagickCLI *cli_wand, geometry_info.sigma=1.0; if ((flags & XiValue) == 0) geometry_info.xi=1.0; - new_image=CharcoalImage(_image,geometry_info.rho, - geometry_info.sigma,_exception); + new_image=CharcoalImage(_image,geometry_info.rho,geometry_info.sigma, + _exception); break; } if (LocaleCompare("chop",option+1) == 0)