PANDORE Version 6 GREYC-IMAGE

pgr2im



Converts graph to float image.


Synopsis

pgr2im type [gr_in|-] [im_out|-]

Description

pgr2im builds the output image im_out from the input graph gr_in. Each node with a value > 0 is represented in the output image as a pixel with the related value at the related coordinates. Each edge is represented following the convention specified by the parameter type.

The output image im_out is a float grayscale image.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Draws the graph a.pan in the image b.pan:

   pgr2im 0 a.pan b.pan

See also

Casting

C++ prototype

Errc PGr2Im( const Graph2d &grs, Img2dsf &imd, int type );

Version française

Conversion d'un graphe en une image.


Author: Régis Clouard