PANDORE Version 6 GREYC-IMAGE

prg2im



Converts region map to signed long image.



Synopsis

prg2im [-m mask] [rg_in|-] [im_out|-]

Description

prg2im creates a label image from a region map. Each label is converted to the related grayscale value; for example the label 10 is converted to the signed long value 10.

The output image im_out is a signed long image.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds the label image out.pan from a region map built from thresholding of tangran.pan.

   pthresholding 100 1e30 tangram.pan a.pan
   plabeling 8 .pan b.pan  
   prg2im b.pan out.pan

See also

Casting

C++ prototype

Errc PRg2Im( const Reg2 &rg_in, Img2dsl &im_out );

Version française

Récupération de l'image d'étiquettes d'une carte de régions.


Author: Régis Clouard