PANDORE Version 6 GREYC-IMAGE

pim2array



Converts image to pixel array.



Synopsis

pim2array name [im_in|-] [col_out|-]

Description

pim2array builds the collection col_out with the array named name that contains the pixels of the input image im_in.

For the color image, the collection contains three arrays named name.1, name.2 et name.3 that contains respectively the pixels of the three bands red, green and blue.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts the image tangram.pan to the vector foo in the collection col.pan:

   pim2array foo tangram.pan col.pan

See also

Casting, parray2im

C++ prototype

Errc PIm2Array( const Img2duc &im_in, Collection &cd,std::string name );

Version française

Conversion d'une image en un vecteur dans une collection.


Author: Alexandre Duret-Lutz