CONTOURMATRIXTOPOLYLINES Converts a contour matrix array into a polyline set.

   POLYS = contourMatrixToPolylines(C)
   Converts the contour matrix array, as given as the result of the
   contourc function, into a set of polylines.

   Example
     img = imread('circles.png');
     C = contourc(img, 1);
     polys = contourMatrixToPolylines(C);
     imshow(img); hold on;
     drawPolyline(polys, 'Color', 'r', 'LineWidth', 2);

   See also
     polygons2d, contour, contourc

Package: matgeom