PANDORE Version 6 | GREYC-IMAGE |
pbarbremoval removes barbs from their length value. A barb is a chain of connected non null pixels with 1 pixel thickness that begins with an end point (a point with only one neighbor) and that ends at a junction (a point with more than two neighbors):
/ -------- \
The parameter relation specifies the order relation to the length value that is used to select or not a barb. All other contour points are kept in the output image.
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 removed barbs.
Removes barbs from contours yielded by a simple edge detection of tangram.pan:
psobel tangram.pan b.pan pbinarization 45 1e30 b.pan c.pan pskeletonization c.pan d.pan ppostthinning d.pan e.pan pbarbremoval 1 5 e.pan out.pan pstatus
Suppression des barbules sur leur longueur.
Author: Régis Clouard