From: cristy Date: Fri, 4 Apr 2014 16:06:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=730ec83a02c4cbc8de5637c362922840597586a5;p=imagemagick --- diff --git a/MagickCore/effect.c b/MagickCore/effect.c index f78f41146..368e20e50 100644 --- a/MagickCore/effect.c +++ b/MagickCore/effect.c @@ -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); }