]> granicus.if.org Git - imagemagick/commitdiff
Incorrect units when computing equivalences
authorCristy <urban-warrior@imagemagick.org>
Fri, 1 Jan 2016 15:07:58 +0000 (10:07 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 1 Jan 2016 15:07:58 +0000 (10:07 -0500)
MagickCore/vision.c

index c467cefe7a66738baec7ebb0c5d37503b0971a50..b216bd9bf8601d6e2fa9fc871d189ccc5cfbb83f 100644 (file)
@@ -294,6 +294,7 @@ MagickExport Image *ConnectedComponentsImage(const Image *image,
           Resolve this equivalence.
         */
         offset=y*image->columns+x;
+        neighbor_offset=dy*image->columns+dx;
         ox=offset;
         status=GetMatrixElement(equivalences,ox,0,&object);
         while (object != ox)