#include "worgen.h"
FUNCTION c_pxmnmx (in, ns, min, max, dtype)
unsigned char *in; long *ns; double *min; double *max; long *dtype;
The array for which minimum and maximum pixel values are to be determined.
The number of samples to be scanned from the buffer.
The minimum pixel value.
The maximum pixel value.
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
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.
c_pxmnmx() returns
E_SUCC --> successful completion TYPERR --> invalid data type specified