Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

MatrixArithmetic


Files

file  psBinaryOp.h
 Provides binary functions for simple matrix and vector element operations.
file  psUnaryOp.h
 Provides unary functions for simple matrix and vector element operations.

Functions

psMathTypepsBinaryOp (psPtr out, const psPtr in1, const char *op, const psPtr in2)
 Perform simple binary arithmetic with images or vectors.
psMathTypepsUnaryOp (psPtr out, const psPtr in, const char *op)
 Perform simple unary arithmetic with images or vectors.


Function Documentation

psMathType* psBinaryOp psPtr  out,
const psPtr  in1,
const char *  op,
const psPtr  in2
 

Perform simple binary arithmetic with images or vectors.

Performs addition, subtraction, multiplication, division, power, minumum, and maximum arithmetic operations with images and vectors. Uses the form:

out = in1 op in2,

Where op is: "=", "+", "-", "*", "/", "^", "min", or "max"

This function only supports vector-vector or image-image operations.

Returns:
psType* : Pointer to either psImage or psVector.
Parameters:
out  Output type, either psImage or psVector.
in1  First input, either psImage or psVector.
op  Operator.
in2  Second input, either psImage or psVector.

psMathType* psUnaryOp psPtr  out,
const psPtr  in,
const char *  op
 

Perform simple unary arithmetic with images or vectors.

Performs absolute value, exponent, natural log, power of 10, log, sine, cosine, tangent, arcsine, arccosine, or arctan. operations with images and vectors. Uses the form:

out = op(in),

Where op is: "abs", "exp", "ln", "ten", "log", "sin", "cos", "tan" "asin", "acos", "atan", "dsin", "dcos", dtan", "dasin", "dacos", or "datan".

Trigometric Operations with "d" prefix use units of degrees. Those without are in radians.

This function only supports vector-vector or image-image opertions.

Returns:
psType* : Pointer to either psImage or psVector.
Parameters:
out  Output type, either psImage or psVector.
in  Input, either psImage or psVector.
op  Operator.


Generated on Wed Sep 14 10:43:47 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2