PANDORE Version 6 GREYC-IMAGE

prg2gr



Converts region map to graph.


Synopsis

prg2gr [-m mask] [rg_in|-] [gr_out|-]

Description

prg2gr builds a graph from a region map, where two neighbour regions in the region map reg_in leads to two linked nodes in the output graph gr_out. The node is located at centre of mass of the related region. Therefore, the node is not necessarily located into the region.

Each links is built with the default weight 1.0.

Inputs

Outputs

Result

Returns SUCCESSS or FAILURE.

Examples

Builds the graph g.pan with the region map r.pan

   prg2gr r.pan g.pan

See also

Casting

C++ prototype

Errc PRg2Gr( const Reg2d &rg_in, Graph &gr_out );

Version française

Création d'un graphe d'un voisinage à partir d'une carte de régions.


Author: François Angot