PANDORE Version 6 GREYC-IMAGE

pimc2img



Converts color image to grayscale image.



Synopsis

pimc2img numband [-m mask] [im_in|-] [im_out|-]

Description

pimc2img creates a grayscale image im_out from one band of the input color image im_in. The type of the grayscale image is the same as the color image.

Parameters

Inputs

Outputs

Examples

Extracts the first band of the parrot.pan color image:

   pimc2img 0 parrot.pan a.pn

Result

Returns SUCCESS or FAILURE.

See also

Casting

C++ prototype

Errc PImc2Img( const Imc2duc &im_in, Img2duc &im_out, int noplan );

Version française

Construction d'une image de niveaux de gris avec un plan d'une image couleur.


Author: Régis Clouard