]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 21 Dec 2012 19:27:44 +0000 (19:27 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 21 Dec 2012 19:27:44 +0000 (19:27 +0000)
MagickCore/threshold.c
MagickWand/operation.c

index ab46fccfa775970f3784d42ac94adf2e6fc7e9f4..cb313b2018c04884fac801ee2270d40f898ba61d 100644 (file)
@@ -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)
index 9d75c3b784777d47f1c0cf54bd2a88caf219d74b..0c2be9ddf07900811e1c99e738d6ecc39f00a64b 100644 (file)
@@ -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)