#include "worgen.h"
FUNCTION c_pxadd (ns, in1, in2, out, scale1, scale2, offset, dtype)
long *ns; unsigned char *in1; unsigned char *in2; unsigned char *out; float *scale1; float *scale2; float *offset; long *dtype;
The number of samples to be added.
An array of pixel values to be added.
An array of pixel values to be added.
An array created by scaling, adding, and offsetting the two input arrays.
out = in1 x scale1 + in2 x scale2 + offset
The scale factor to be applied to in1 before addition.
The scale factor to be applied to in2 before addition.
The offset to be applied.
An integer value that represents the type of data to be added. The output array is of the same data type as the input arrays.
= EBYTE(1): unsigned byte data = EWORD(2): signed two byte data = ELONG(3): signed four byte data = EREAL(4): four byte floating point data
The c_pxadd() call is used to create an output array out by scaling, adding, and offsetting the pixel values of the two input arrays in1 and in2 of type dtype.
c_pxadd() returns
E_SUCC --> successful completion TOOBIG --> exceeded upper limit of data type TOOSMALL--> exceeded lower limit of data type TYPERR --> invalid data type specified