PANDORE Version 6 GREYC-IMAGE

pbarbremoval



Removes barbs from length.



Synopsis

pbarbremoval relation length [-m mask] [im_in|-] [im_out|-]

Description

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.

Parameters

Inputs

Outputs

Result

The number of removed barbs.

Examples

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

See also

Contour

C++ prototype

Errc PBarbRemoval( const Img2duc &im_in, Img2duc &im_out, int relation, int length );

Version française

Suppression des barbules sur leur longueur.


Author: Régis Clouard