PANDORE Version 6 GREYC-IMAGE

pim2sl



Converts any image type to signed long image.



Synopsis

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

Description

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

   pixel(im_out)=(long)pixel(im_in);

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts tangram.pan to signed long image:

   pim2sl tangram.pan out.pan

See also

Casting

C++ prototype

Errc PIm2Sl( const Img2d &im_in, Img2dul &im_out );

Version française

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


Author: Régis Clouard