PANDORE Version 6 GREYC-IMAGE

pgr2rg



Converts graph to region map.


Synopsis

pgr2rg [-m mask] [gr_in|-] [rg_in|-] [rg_out|-]

Description

pgr2rg builds the output region map rg_out from the selection of regions of the input region map rg_in that match the nodes of the input graph gr_in. Only regions that are indexed by a node are kept in the output region map.

The label of the output region map are the same as the input region map. There is no relabeling.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds the new region map rout.pan with the regions of rin.pan that are indexed by the node of the input graph g.pan:

   prg2gr g.pan rin.pan rout.pan

See also

Casting

C++ prototype

Errc PGr2Rg( const Graph2d &gr_in, const Reg2d &rg_in, Reg2d &rg_out );

Version française

Construction d'une carte de régions par application d'un graphe sur une carte de régions.


Author: Régis Clouard