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

psBinaryOp.h

Go to the documentation of this file.
00001 
00002 /** @file  psBinaryOp.h
00003  *
00004  *  @brief Provides binary functions for simple matrix and vector element operations. Functions
00005  *  include:
00006  *
00007  *      Addition (+)
00008  *      Subtraction (-)
00009  *      Multiplication (*)
00010  *      Division (/)
00011  *      Power (^)
00012  *      Minimum (min)
00013  *      Maximum (max)
00014  *      Absolute value (abs)
00015  *      Exponent (exp)
00016  *      Natural Log (ln)
00017  *      Power of 10 (ten)
00018  *      Log (log)
00019  *      Sine (sin or dsin)
00020  *      Cosine (cos or dcos)
00021  *      Tangent (tan or dtan)
00022  *      Arcsine (asin or dasin)
00023  *      Arccosine (acos or dacos)
00024  *      Arctan (atan or datan)
00025  *
00026  *  Currently only vector-vector and image-image binary operations are supported.
00027  *
00028  *  @ingroup MatrixArithmetic
00029  *
00030  *  @author Ross Harman, MHPCC
00031  *  @author Robert DeSonia, MHPCC
00032  *
00033  *  @version $Revision: 1.1 $ $Name: rel5_0 $
00034  *  @date $Date: 2005/02/10 02:36:41 $
00035  *
00036  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00037  */
00038 
00039 #ifndef PSBINARY_OP_H
00040 #define PSBINARY_OP_H
00041 
00042 /// @addtogroup MatrixArithmetic
00043 /// @{
00044 
00045 /** Perform simple binary arithmetic with images or vectors
00046  *
00047  *  Performs addition, subtraction, multiplication, division, power, minumum, and maximum arithmetic
00048  *  operations with images and vectors. Uses the form:
00049  *
00050  *      out = in1 op in2,
00051  *
00052  *      Where op is: "=", "+", "-", "*", "/", "^", "min", or "max"
00053  *
00054  *  This function only supports vector-vector or image-image operations.
00055  *
00056  *  @return  psType* : Pointer to either psImage or psVector.
00057  */
00058 psType* psBinaryOp(
00059     psPtr out,                         ///< Output type, either psImage or psVector.
00060     psPtr in1,                         ///< First input, either psImage or psVector.
00061     char *op,                          ///< Operator.
00062     psPtr in2                          ///< Second input, either psImage or psVector.
00063 );
00064 
00065 /// @}
00066 
00067 #endif

Generated on Mon Apr 4 18:24:44 2005 for Pan-STARRS Foundation Library by  doxygen 1.3.9.1