PANDORE Version 6 GREYC-IMAGE

prelabelingfromarray



Relabels regions from label array.



Synopsis

prelabelingfromarray name [col_in|-] [rg_in|-] [rg_out|-]

Description

prelabelingfromarray relabels region of the input region map rg_in from the values of the array named name given in the input collection col_in.

The label of the input region x > 0 is set with the new label name[x-1]. If the array name has less value than the label values then the remainder regions are discarded from the result region map. The region 0 is not relabeled.

Inputs

Outputs

Parameters

Result

Returns the maximum label value of the output region map.

Examples

Relabels regions from the vector foo in the collection col.pan:

   prelabelingfromarray foo col.pan rin.pn rout.pan

See also

Region

C++ prototype

Errc PRelabelingFromArray( const std::string &name, const Collection &in, const Reg2d &reg_in, Reg2d &reg_out );

Version française

Relabelisation d'une carte de régions à partir des valeurs d'un vecteur d'etiquettes.


Author: Alexandre Duret-Lutz