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

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. Functions
00004  *  include:
00005  *
00006  *      Addition (+)
00007  *      Subtraction (-)
00008  *      Multiplication (*)
00009  *      Division (/)
00010  *      Power (^)
00011  *      Minimum (min)
00012  *      Maximum (max)
00013  *      Absolute value (abs)
00014  *      Exponent (exp)
00015  *      Natural Log (ln)
00016  *      Power of 10 (ten)
00017  *      Log (log)
00018  *      Sine (sin or dsin)
00019  *      Cosine (cos or dcos)
00020  *      Tangent (tan or dtan)
00021  *      Arcsine (asin or dasin)
00022  *      Arccosine (acos or dacos)
00023  *      Arctan (atan or datan)
00024  *
00025  *  Currently only vector-vector and image-image binary operations are supported.
00026  *
00027  *  @ingroup MatrixArithmetic
00028  *
00029  *  @author Ross Harman, MHPCC
00030  *  @author Robert DeSonia, MHPCC
00031  *
00032  *  @version $Revision: 1.1.1.1 $ $Name:  $
00033  *  @date $Date: 2005/06/15 21:08:12 $
00034  *
00035  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00036  */
00037 
00038 #ifndef PSUNARY_OP_H
00039 #define PSUNARY_OP_H
00040 
00041 /// @addtogroup MatrixArithmetic
00042 /// @{
00043 
00044 
00045 /** Perform simple unary arithmetic with images or vectors
00046  *
00047  *  Performs absolute value, exponent, natural log, power of 10, log, sine, cosine, tangent, arcsine,
00048  *  arccosine, or arctan. operations with images and vectors. Uses the form:
00049  *
00050  *     out = op(in),
00051  *
00052  *     Where op is: "abs", "exp", "ln", "ten", "log", "sin", "cos", "tan" "asin", "acos", "atan", "dsin",
00053  *                  "dcos", dtan", "dasin", "dacos", or "datan".
00054  *
00055  *  Trigometric Operations with "d" prefix use units of degrees. Those without are in radians.
00056  *
00057  *  This function only supports vector-vector or image-image opertions.
00058  *
00059  *  @return  psType* : Pointer to either psImage or psVector.
00060  */
00061 psType* psUnaryOp(
00062     psPtr out,                         ///< Output type, either psImage or psVector.
00063     psPtr in,                          ///< Input, either psImage or psVector.
00064     char *op                           ///< Operator.
00065 );
00066 
00067 /// @}
00068 
00069 #endif // #ifndef PSUNARY_OP_H

Generated on Wed Jun 15 11:00:57 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1