IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 333


Ignore:
Timestamp:
Mar 31, 2004, 12:32:52 PM (22 years ago)
Author:
Paul Price
Message:

Added conversions between vector and matrix, and matrix and image.
Note that matrix operations are not defined for division.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMatrix.h

    r257 r333  
    4545                    );
    4646
    47 /** Matrix operations */
     47/** Matrix operation: addition, subtraction, multiplication */
    4848psMatrix *
    4949psMatrixOp(psMatrix *out,               //!< Matrix to return, or NULL
    5050           const psMatrix *matrix1,     //!< Matrix 1
    51            const char *op,              //!< Operation to perform
    5251           const psMatrix *matrix2      //!< Matrix 2
    53            );
     52    );
    5453
    5554/** Transpose Matrix */
     
    5958                  );
    6059
     60/***********************************************************************************************************/
     61
     62/* Conversions */
     63
    6164/** Convert matrix to vector.  Intended for a 1-d matrix. */
    6265psVector *
    63 psMatrixToVector(psMatrix *myMatrix     //!< Matrix to convert
     66psMatrixToVector(psVector *out,         //!< Vector to return, or NULL
     67                 psMatrix *myMatrix     //!< Matrix to convert
     68    );
     69
     70/** Convert vector to matrix. */
     71psMatrix *
     72psVectorToMatrix(psMatrix *out,         //!< Matrix to return, or NULL
     73                 psVector *myVector     //!< Vector to convert
     74    );
     75
     76/** Convert matrix to image */
     77psImage *
     78psMatrixToImage(psImage *out,           //!< Image to return, or NULL
     79                psMatrix *myMatrix      //!< Matrix to convert
     80    );
     81
     82/* Convert image to matrix */
     83psMatrix *
     84psImageToMatrix(psMatrix *out,          //!< Matrix to return, or NULL
     85                psImage *myImage        //!< Image to convert
    6486    );
    6587
Note: See TracChangeset for help on using the changeset viewer.