PANDORE Version 6 GREYC-IMAGE

poutborderselection



Selects regions that do not touch the border.



Synopsis

poutborderselection w h d [rg_in|-] [rg_out|-]

Description

poutborderselection builds the new region map rg_out from the region of the input region map rg_in that do not touch the border of the region map. The border is specified from the depth p, the height h and the width l dimensions.

Regions are not relabeled, they keep the same label as in the input region map.

Parameters

Inputs

Outputs

Result

Returns the number of selected regions.

Examples

Discards regions that touch the border of the 2D region map:

   poutborderselection 1 1 0 rin.pan rout.pan

See also

Region

C++ prototype

Errc POutBorderSelection( const Reg2d &rg_in, Reg2d &rg_out, int w, int h, int d );

Version française

Sélection des régions qui ne touchent pas le bord de l'image.


Author: Régis Clouard