c_pxl10 - Returns the log base 10 of each element of an array

SYNTAX

#include "worgen.h"

FUNCTION c_pxl10 (in, out, ns, dtype)

     long               *in;
     double             *out;
     long               *ns;
     long               *dtype;

PARAMETERS

in (input, 'dtype')

Input array.

out (output, double('ns'))

Output array to hold result.

ns (input, integer)

Number of elements in the input array.

dtype (input, integer)

Integer value representing the type of input 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

DESCRIPTION

c_pxl10() returns the log base 10 on each element of an input array. The input array may be of type EBYTE, EWORD, ELONG, or EREAL and the output array will be of type double.

RETURN VALUE

c_pxl10() returns

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