]> granicus.if.org Git - imagemagick/commitdiff
Change Skeleton default
authoranthony <anthony@git.imagemagick.org>
Mon, 4 Apr 2011 06:10:53 +0000 (06:10 +0000)
committeranthony <anthony@git.imagemagick.org>
Mon, 4 Apr 2011 06:10:53 +0000 (06:10 +0000)
magick/morphology.c

index 861f811126aac90be1d30d834882266fd6feaac0..bc310420d0aae1d8bee6af319ec0d054eb06a01d 100644 (file)
@@ -879,7 +879,7 @@ MagickExport KernelInfo *AcquireKernelInfo(const char *kernel_string)
 %         Type 1: Tradional Skeleton kernel (4 connected skeleton)
 %         Type 2: HIPR2 Skeleton kernel (8 connected skeleton)
 %         Type 3: Thinning skeleton based on a ressearch paper by
-%                 Dan S. Bloomberg
+%                 Dan S. Bloomberg (Default Type)
 %    ThinSE:type
 %       A huge variety of Thinning Kernels designed to preserve conectivity.
 %       many other kernel sets use these kernels as source definitions.
@@ -1977,7 +1977,6 @@ MagickExport KernelInfo *AcquireKernelBuiltIn(const KernelInfoType type,
         {
           switch ( (int) args->rho ) {
             case 1:
-            default:
               /* Traditional Skeleton...
               ** A cyclically rotated single kernel
               */
@@ -2002,6 +2001,7 @@ MagickExport KernelInfo *AcquireKernelBuiltIn(const KernelInfoType type,
               ExpandRotateKernelInfo(kernel, 90.0); /* 4 rotations of the 2 kernels */
               break;
             case 3:
+            default:
               /* Dan Bloomberg Skeleton, from his paper on 3x3 thinning SE's
               ** "Connectivity-Preserving Morphological Image Thransformations"
               ** by Dan S. Bloomberg, available on Leptonica, Selected Papers,