PANDORE Version 6 GREYC-IMAGE

pboundarylabeling



Performs region labeling from boundary.



Synopsis

pboundarylabeling [-m mask] [im_in|-] [rg_out|-]

Description

pboundarylabeling builds regions from a set of connected pixels surrounded by a closed contour. A closed contour is a chain of 8-connected non null pixels that describes a loop.

A region is built as a set of connected pixels with the same label. The label value is set randomly from 1 to the total number of regions.

Notice: Pixels with label value = 0 are not considered as part of region. Thus, the region 0 does not exist.

Inputs

Outputs

Result

Returns the number of regions.

Examples

Closes edges and labels related regions:

   psobel tangram.pan b.pan
   pbinarization 34 1e30 b.pan c.pan
   pskeletonization c.pan d.pan 
   pboundarylabeling d.pan out.pan

See also

Segmentation, plabeling

C++ prototype

Errc PBoundaryLabeling( const Img2duc &im_in, Reg2d &rg_out );

Version française

Etiquetage en régions d'une image de contours fermés.


Author: Régis Clouard