PANDORE Version 6 GREYC-IMAGE

pim2rg



Converts grayscale image to region map.



Synopsis

pim2rg [-m mask] [im_in|-] [rg_out|-]

Description

pim2rg builds the region map rg_out from the grayscale image im_in . Each pixel value is converted to a label of the region map. Negative pixels are not considered.

Warning: There is no relabeling of regions. The label is set to the value of the related the pixel value.

Inputs

Outputs

Result

Returns the maximum label value in the result region map or FAILURE

Examples

Buils a region map from binarization of tangram.pan:

   pbinarization 100 1e30 examples/tangram.pan a.pan
   pim2rg a.pan b.pan

See also

Casting

C++ prototype

Errc PIm2Rg( const Img2duc &im_in, Reg2d &rg_in );

Version française

Création d'une carte de régions à partir d'une image d'étiquettes.


Author: Régis Clouard