c_pxline - Performs a linear transformation on an array

SYNTAX

#include "worgen.h"

FUNCTION c_pxline (in, out, ns, dtype, scale, offset)

     long               *in;
     long               *out;
     long               *ns;
     long               *dtype;
     float              *scale;
     float              *offset;

PARAMETERS

in (input, 'dtype')

Input array to be transformed. Must be same type as out.

out (output, 'dtype')

Output array to hold result. Must be same type as in.

ns (input, integer)

Number of elements in the input array.

dtype (input, integer)

Integer value representing the type of data. Legal values include:

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

scale (input, real)

Factor by which each element in the array will be multiplied.

offset (input, real)

Number to be added to each element of the array.

DESCRIPTION

c_pxline() performs a linear transformation on each element of an input array. The input array and output array must be of the same type.

RETURN VALUE

c_pxline() returns

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