PANDORE Version 6 GREYC-IMAGE

parray2im



Converts pixel array to image.



Synopsis

parray2img w h d name [col_in|-] [im_out|-]

Description

parray2img2d builds the image im_out with size wxhxd from the value of the array name in the collection im_out.

If the array contains 1 vector then the output image is grayscale image. If the collection contains 3 vectors then the output is a color image.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds the 2D image a.pan from the vector foo in the collection col.pan

   parray2im 256 256 0 foo col.pan a.pan

See also

Casting, pim2array

C++ prototype

Errc PArray2Im( const std::string s, const Collection &c, Img2duc &im_out );

Version française

Création d'une image à partir de vecteurs d'une collection.


Author: Alexandre Duret-Lutz