c_minxax - Retrieves or calculates the minimum/maximum values of input image(s)

SYNTAX

#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;

PARAMETERS

hname (input, character, length(nimg)(CMLEN))

A pointer to the host names of the input image(s).

nimg (input, integer)

The number of input image(s).

window (input, integer, length(nimg)(4))

The window dimensions of the input image(s).

bands (input, integer, length(nimg)(MAXBND + 1))

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.

nbands (input, integer, length(nimg))

The number of bands for each of the input image(s).

minval (output, double, length(MAXBND))

A pointer to an array that will store the minimum values of each specific band of the image.

maxval (output, double, length(MAXBND))

A pointer to an array that will store the maximum values of each specific band of the image.

DESCRIPTION

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.

RETURN VALUE

c_minmax() returns

     E_SUCC (0)  -->  successful completion
     E_FAIL (-1) -->  operation failed

CONSIDERATIONS

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.