PANDORE Version 6 GREYC-IMAGE

pim2sf



Converts any image type to float image.



Synopsis

pim2sf [-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)=(float)pixel(im_in);

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts tangram.pan to float image:

   pim2sf a.pan out.pan

See also

Casting

C++ prototype

Errc PIm2Sf( const Img2d &im_in, Img2duc &im_out );

Version française

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


Author: Régis Clouard