PANDORE Version 6 GREYC-IMAGE

prelabelingwithgraph



Relabels region and related graph node.



Synopsis

prelabelingwithgraph [rg_in|-] [gr_in|-] [rg_out|-] [gr_out|-]

Description

prelabelingwithgraph relabels regions of the input region map rg_in and the related nodes in the input graph gr_in. Each region of the output region map is set with a new label so as to use all labels between 0 and the number of regions. The related graph nodes of the output graph graph_out are set with the same label value.

Remarque: To relabel a region map without a graph use operator plabeling.

Inputs

Outputs

Result

Returns the maximum label value in the region map.

Examples

Relabels regions of the rin.pan region map and updates the related graph g.pan:

   relabelingwithgraph rin.pan g.pan rut.pn

See also

Region, plabeling

C++ prototype

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

Version française

Renumérotation des régions d'une carte et des sommets du graphe associé.


Author: Régis Clouard