]> granicus.if.org Git - imagemagick/commitdiff
minor bugfix for Thining and Thicken
authoranthony <anthony@git.imagemagick.org>
Tue, 18 May 2010 04:33:23 +0000 (04:33 +0000)
committeranthony <anthony@git.imagemagick.org>
Tue, 18 May 2010 04:33:23 +0000 (04:33 +0000)
magick/morphology.c

index fe7cf3226d348f106d054e8e0e4d6cc0e2fc66b6..1ee8ed98347640dac6f92bfe6b84875837b6712b 100644 (file)
@@ -2418,11 +2418,12 @@ MagickExport Image *MorphologyApply(const Image *image, const ChannelType
     case ThickenMorphology:
     case DistanceMorphology:     /* Distance should never use multple kernels */
     case UndefinedMorphology:
-      kernel_compose = NoCompositeOp;
+      primative = method;
       break;
   }
 
-  { /* User override of results handling */
+#if 0
+  { /* User override of results handling  -- Experimental */
     const char
        *artifact = GetImageArtifact(image,"morphology:style");
     if ( artifact != (const char *) NULL ) {
@@ -2437,6 +2438,7 @@ MagickExport Image *MorphologyApply(const Image *image, const ChannelType
         perror("Invalid \"morphology:compose\" setting\n");
     }
   }
+#endif
 
   /* Initialize compound morphology stages  */
   count = 0;          /* number of low-level morphology primatives performed */