PANDORE Version 6 | GREYC-IMAGE |
pcontourextensionconic extends all contour end points by a cone shape defined by the size length. A contour chain is a sequence of connected non null pixels with 1 pixel thickness. An end point is a contour point with only 1 neighbor.
The extension of the end point is done with a cone of the specified length in the sense of the contour. For example, the 2D contour on the left is extended to the contour on the right if length=3.
x xx xxx xxxx -> xxxxxxxx xxx xx x
Warning: if the contour is not 1 pixel thickness, the operator may have unpredictable behavior. It might be necessary to use the operator ppostthinning to guaranty 1 pixel thickness.
The number of end points.
Closes contours yielded by a simple edge detection of tangram.pan by using an extension of the end points:
psobel tangram.pan b.pan pbinarization 55 1e30 b.pan c.pan pskeletonization c.pan d.pan ppostthinning d.pan e.pan pcontourextensionconic 3 e.pan f.pan plabeling 8 f.pan out.pan
Extension des points terminaux dans la direction du contour par une forme conique.
Author: Arnaud Renouf