c_pxmnmx - Determines minimum and maximum pixel values

SYNTAX

#include "worgen.h"

FUNCTION c_pxmnmx (in, ns, min, max, dtype)

     unsigned char          *in;
     long                   *ns;
     double                 *min;
     double                 *max;
     long                  *dtype;

PARAMETERS

in (input, 'dtype')

The array for which minimum and maximum pixel values are to be determined.

ns (input, integer)

The number of samples to be scanned from the buffer.

min (input/output, double)

The minimum pixel value.

max (input/output, double)

The maximum pixel value.

dtype (input, integer)

A value that represents the type of data to be scanned.

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     four byte floating point data
     = EDOUBLE(5):  eight byte floating point data

DESCRIPTION

The c_pxmnmx() call is used to determine the minimum and maximum values of the input array in and the min and max parameters themselves.

RETURN VALUE

c_pxmnmx() returns

     E_SUCC --> successful completion
     TYPERR --> invalid data type specified