psUnaryOp.h

Go to the documentation of this file.
00001 /* @file  psUnaryOp.h
00002  *
00003  * @brief Provides unary functions for simple matrix and vector element operations
00004  *
00005  * Defined unary functions 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  * @author EAM, IfA
00029  * @author Ross Harman, MHPCC
00030  * @author Robert DeSonia, MHPCC
00031  *
00032  * @version $Revision: 1.5 $ $Name:  $
00033  * @date $Date: 2007/01/23 22:47:23 $
00034  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00035  */
00036 
00037 #ifndef PSUNARY_OP_H
00038 #define PSUNARY_OP_H
00039 
00040 /// @addtogroup MathOps Mathematical Operations
00041 /// @{
00042 
00043 /** Perform simple unary arithmetic with images or vectors
00044  *
00045  *  Performs absolute value, exponent, natural log, power of 10, log, sine, cosine, tangent, arcsine,
00046  *  arccosine, or arctan. operations with images and vectors. Uses the form:
00047  *
00048  *     out = op(in),
00049  *
00050  *     Where op is: "abs", "exp", "ln", "ten", "log", "sin", "cos", "tan" "asin", "acos", "atan", "dsin",
00051  *                  "dcos", dtan", "dasin", "dacos", or "datan".
00052  *
00053  *  Trigometric Operations with "d" prefix use units of degrees. Those without are in radians.
00054  *
00055  *  This function only supports vector-vector or image-image opertions.
00056  *
00057  *  @return  psType* : Pointer to either psImage or psVector.
00058  */
00059 psMathType* psUnaryOp(
00060     psPtr out,                         ///< Output type, either psImage or psVector.
00061     const psPtr in,                    ///< Input, either psImage or psVector.
00062     const char *op                     ///< Operator.
00063 );
00064 
00065 /// @}
00066 #endif // #ifndef PSUNARY_OP_H

Generated on Fri Feb 2 22:24:35 2007 for pslib by  doxygen 1.5.1