PANDORE Version 6 GREYC-IMAGE

praw2pan



Converts raw image file to Pandore image file.



Synopsis

praw2pan bytes ncol nrow ndep color im_in [im_out|-]

Description

praw2pan converts a binary image to a Pandore image.

The parameter bytes determines the size of each pixel in byte.

In the case of color images, if the parameter color=1 then the image is encoded by band, first all the pixels of the red band, then the green bnad and finnaly the blue band. If the parameter color=2 then the color are encoded as a triplet (red, green, blue) for each pixel.

Caution: The raw image is endian system dependent. Use the parameter bytes to specify if the endian conversion must be done during the file conversion.

Tip: Because, the data are read from the end of the file, this operator can be used to convert any image type that encodes the image data in binary code. Therefore, any header is skip.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Conversion of a 2D color image of size 1024x1024 pixels encoded by bands.

   praw2pan 1 1024 1024 0 0 image.raw image.pan

See also

Conversion, ppan2raw

C++ prototype

Errc PRaw2Pan( const char* filename, pobject** obj_out, Long npix, Long nlig, Long ncol, int color );

Version française

Conversion d'un fichier image sans entête en un fichier Pandore.


Author: Regis Clouard