PANDORE Version 6 GREYC-IMAGE

pholeselection



Selects holes in regions.



Synopsis

pholeselection connexity [-m mask] [rg_in|-] [rg_out|-]

Description

The operator returns a new region map rg_out with the regions that mark the holes in the regions of the input region map rg_in.

A hole is a background region (ie. label=0) that has only one neighboring region.

Parameters

Inputs

Outputs

Result

Returns the number of selected holes.

Examples

Selection of holes in the pieces of tangram:

 pbinarization 97 255 examples/tangram.pan 
 plabeling 8 a.pan b.pan
 pholeselection 8 b.pan c.pan

See also

Region

C++ prototype

Errc PHoleSelection( const Img2duc &rg_in, Img2duc &rg_out, int connexity );

Author: Régis Clouard