]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 10 Apr 2014 00:20:02 +0000 (00:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 10 Apr 2014 00:20:02 +0000 (00:20 +0000)
MagickCore/effect.c

index ad5d5e759a560e829edcfa6b21d9e61cd74518fb..6ec76b2eb79bfd4fef890ef2c68cfb0136abf839 100644 (file)
@@ -1143,25 +1143,25 @@ MagickExport Image *CannyEdgeImage(const Image *image,const double radius,
       if (fabs(dx) > MagickEpsilon)
         {
           double
-            theta;
+            slope;
 
-          theta=dy/dx;
-          if (theta < 0.0)
+          slope=dy/dx;
+          if (slope < 0.0)
             {
-              if (theta < -2.41421356237)
+              if (slope < -2.41421356237)
                 pixel.orientation=0;
               else
-                if (theta < -0.414213562373)
+                if (slope < -0.414213562373)
                   pixel.orientation=1;
                 else
                   pixel.orientation=2;
             }
           else
             {
-              if (theta > 2.41421356237)
+              if (slope > 2.41421356237)
                 pixel.orientation=0;
               else
-                if (theta > 0.414213562373)
+                if (slope > 0.414213562373)
                   pixel.orientation=3;
                 else
                   pixel.orientation=2;