PANDORE Version 6 GREYC-IMAGE

pim2uc



Converts any image type to unsigned char image.



Synopsis

pim2uc [-m mask] [im_in|-] [im_out|-]

Description

pim2sl builds a new unsigned char image from an image of any type. Each pixel of the input image is converted to unsigned char by using only a casting operation. There is no interpolation of the pixel values:

   pixel(im_out)=(unsigned char)pixel(im_in);

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts the float image a.pan to Uchar image b.pan:

   pim2uc a.pan b.pan

See also

Casting

C++ prototype

Errc PIm2Uc( comst Img2d &im_in, Img2duc &im_out );

Version française

Conversion automatique d'une image de n'importe quel type en type unsigned char.


Author: Régis Clouard