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
- numband is an integer from [0..2]:
- 0: the first band (for example the red band for RGB image, or the hue band for HSL image).
- 1: the second band (for example the green band for RGB image, or the saturation band for HSL image).
- 2: the third band (for example the blue band for RGB image, or the lightness band for HSL image).
Inputs
Outputs
- im_out: a grayscale image.
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