#include "las.h"
FUNCTION c_minmax (hname,nimg,window,bands,nbands,minval,maxval)
char hname[][CMLEN]; long *nimg; long window[][4]; long bands[][MAXBND + 1]; long *nbands; double *minval; double *maxval;
A pointer to the host names of the input image(s).
The number of input image(s).
The window dimensions of the input image(s).
A two-dimensioned array of the specific bands for each input image that are to be calculated. Bands needs to be a zero-terminated array.
The number of bands for each of the input image(s).
A pointer to an array that will store the minimum values of each specific band of the image.
A pointer to an array that will store the maximum values of each specific band of the image.
The c_minmax() call is used to retrieve or calculate the minimum/maximum values of nimg input image(s) with host name(s) of hname, window dimensions of window, and of bands which are specified in the array bands. The minimum values are stored in the array minval and the maximum values are stored in the array maxval.
c_minmax() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed
c_minmax will update the minimum/maximum values in the input image(s) DDR file if the window specified for that image is the full image size. This is not dependent upon the value of the LAS global $MINMAX.