VistaIOCombineBands(3) | Library Functions Manual | VistaIOCombineBands(3) |
VistaIOCombineBands, VistaIOCombineBandsVa - copy a series of image bands
#include <vistaio.h>
VistaIOImage VistaIOCombineBands (nels, src_images, src_bands, dest)
int nels; VistaIOImage src_images[], dest; VistaIOBand src_bands[];
VistaIOImage VistaIOCombineBandsVa (dest, src_image1, src_band1, ..., NULL)
VistaIOImage dest, src_image1; VistaIOBand src_band1;
VistaIOCombineBands copies bands of pixel values from various source images to a destination image. The source images are listed in the array src_images, and the band(s) to be copied from each is listed in the array src_bands. Both arrays must have nels elements. A src_bands element may be VistaIOAllBands, indicating that all bands of the corresponding source image are to be copied, or it may be a particular band number, indicating that only that band of the corresponding source image is to be copied.
VistaIOCombineBandsVa is similar except that the source images and band numbers are specified by a variable-length argument list. The argument list contains one or more pairs of the form src_image1, src_band1, and it is terminated by the value NULL
All source images must have have the same pixel representation, number of rows, and number of columns.
If dest is NULL, a destination image is created with the same pixel representation, number of rows, and number of columns as the source images. The image is created with a number of bands equal to the total number of bands to be copied.
Otherwise dest specifies an image to which pixel values are to be copied. It must have the same pixel representation, number of rows, and number of columns as the source image, and it must have a number of bands equal to the total number bands to be copied.
Source image bands, taken in the sequence specified, are copied to consecutive destination image bands.
Both routines return the destination image if they are successful and NULL otherwise.
No attributes are copied from any source images to the destination image.
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
24 April 1993 | VistaIO Version 1.2.14 |