c_pxlkup - Performs a look-up table transformation on an array

SYNTAX

#include "worgen.h"

FUNCTION c_pxlkup (in, out, ns, dtype, lut, luttype)

     long               *in;
     long               *out;
     long               *ns;
     long               *dtype;
     long               *lut;
     long               *luttype;

PARAMETERS

in (input, 'dtype')

Input array.

out (output, 'luttype')

Output array to hold result.

ns (input, integer)

Number of elements in the input arrays.

dtype (input, integer)

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

     =  EBYTE(1):     unsigned byte data
     =  EWORD(2):     signed 2 byte data

lut (input, 'luttype')

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

luttype (input, integer)

Integer value representing the type of data in look-up table. Legal values include:

     =  EBYTE(1):     unsigned byte data
     =  EWORD(2):     signed 2 byte data

DESCRIPTION

c_pxlkup() performs a look-up table transformation each element of an input array.

RETURN VALUE

c_pxlkup() returns

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