PANDORE Version 6 |
GREYC-IMAGE |
pgetband
Gets a specified band in a multispectral image.
Synopsis
pgetband band [-m mask] [im_in|-] [im_out|-]
Description
pgetband creates a grayscale image
im_out with the specified band of the input image.
The type of the grayscale image is the same as the input image.
Parameters
- band is an integer. If the value if lower or
greater than the current number of bands in the input image
than the closest band is used (the first or last band).
Inputs
Outputs
- im_out: a grayscale image.
Examples
Extracts the first band of the parrot.pan color image:
pgetband 0 parrot.pan a.pn
Result
Returns SUCCESS or FAILURE.
See also
Utility,
psetband.
C++ prototype
Errc PGetBand( const Imc2duc &im_in, Img2duc &im_out, int band );
Version française
Récupération d'une bande donnée dans une image multispectrale.
Author: Régis Clouard