]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 4 Apr 2014 16:06:24 +0000 (16:06 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 4 Apr 2014 16:06:24 +0000 (16:06 +0000)
MagickCore/effect.c

index f78f41146e750662488e893a678c3300a1950877..368e20e507b99999a37bad80f5b2c636be60f661 100644 (file)
@@ -905,7 +905,7 @@ static MagickBooleanType IsAuthenticPixel(const Image *image,const ssize_t x,
 
 static MagickBooleanType TraceEdge(Image *edge_image,CacheView *edge_view,
   MatrixInfo *pixel_cache,const ssize_t x,const ssize_t y,
-  const double threshold,ExceptionInfo *exception)
+  const double lower_threshold,ExceptionInfo *exception)
 {
   CannyInfo
     pixel;
@@ -944,10 +944,10 @@ static MagickBooleanType TraceEdge(Image *edge_image,CacheView *edge_view,
                 Not an edge if gradient value is below the lower threshold.
               */
               (void) GetMatrixElement(pixel_cache,x+u,y+v,&pixel);
-              if (pixel.intensity < threshold)
+              if (pixel.intensity < lower_threshold)
                 continue;
               status=TraceEdge(edge_image,edge_view,pixel_cache,x+u,y+v,
-                threshold,exception);
+                lower_threshold,exception);
               if (status != MagickFalse)
                 return(MagickTrue);
             }