IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 340


Ignore:
Timestamp:
Mar 31, 2004, 4:41:26 PM (22 years ago)
Author:
Paul Price
Message:

A matrix is now an image.

File:
1 edited

Legend:

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

    r333 r340  
    77 */
    88
    9 /** A matrix */
    10 typedef struct {
    11     int xSize, ySize;                   //!< Dimensions in x and y
    12     float *restrict *restrict value;    //!< Values in matrix
    13 } psMatrix;
    14 
    159/** Functions **************************************************************/
    1610/** \addtogroup MathGroup Math Utilities
     
    1812 */
    1913
    20 /** Constructor */
    21 psMatrix *
    22 psMatrixAlloc(int Xdimen,               //!< x dimension of new matrix
    23               int Ydimen                //!< y dimension of new matrix
    24     );
    25 
    26 /** Destructor */
    27 void
    28 psMatrixFree(psMatrix *restrict myMatrix        //!< Matrix to destroy
    29     );
    30 
    31 /***********************************************************************************************************/
    3214
    3315/* Linear Algebra */
    3416
    3517/** Invert matrix.  Not using restrict, to allow inversion to be done in-place */
    36 psMatrix *
    37 psMatrixInvert(psMatrix *out,           //!< Matrix to return, or NULL
    38                const psMatrix *myMatrix, //!< Matrix to be inverted
     18psImage *
     19psMatrixInvert(psImage *out,            //!< Matrix to return, or NULL
     20               const psImage *myMatrix, //!< Matrix to be inverted
    3921               float *restrict determinant //!< Determinant to return, or NULL
    4022    );
     
    4224/** Matrix determinant */
    4325float
    44 psMatrixDeterminant(const psMatrix *restrict myMatrix //!< Matrix to get determinant for
     26psMatrixDeterminant(const psImage *restrict myMatrix //!< Matrix to get determinant for
    4527                    );
    4628
    4729/** Matrix operation: addition, subtraction, multiplication */
    48 psMatrix *
    49 psMatrixOp(psMatrix *out,               //!< Matrix to return, or NULL
    50            const psMatrix *matrix1,     //!< Matrix 1
    51            const psMatrix *matrix2      //!< Matrix 2
     30psImage *
     31psMatrixOp(psImage *out,                //!< Matrix to return, or NULL
     32           const psImage *matrix1,      //!< Matrix 1
     33           const psImage *matrix2       //!< Matrix 2
    5234    );
    5335
    5436/** Transpose Matrix */
    55 psMatrix *
    56 psMatrixTranspose(psMatrix *out,        //!< Matrix to return, or NULL
    57                   const psMatrix *myMatrix //!< Matrix to transpose
     37psImage *
     38psMatrixTranspose(psImage *out,         //!< Matrix to return, or NULL
     39                  const psImage *myMatrix //!< Matrix to transpose
    5840                  );
    5941
     
    6547psVector *
    6648psMatrixToVector(psVector *out,         //!< Vector to return, or NULL
    67                  psMatrix *myMatrix     //!< Matrix to convert
     49                 psImage *myMatrix      //!< Matrix to convert
    6850    );
    6951
    7052/** Convert vector to matrix. */
    71 psMatrix *
    72 psVectorToMatrix(psMatrix *out,         //!< Matrix to return, or NULL
     53psImage *
     54psVectorToMatrix(psImage *out,          //!< Matrix to return, or NULL
    7355                 psVector *myVector     //!< Vector to convert
    74     );
    75 
    76 /** Convert matrix to image */
    77 psImage *
    78 psMatrixToImage(psImage *out,           //!< Image to return, or NULL
    79                 psMatrix *myMatrix      //!< Matrix to convert
    80     );
    81 
    82 /* Convert image to matrix */
    83 psMatrix *
    84 psImageToMatrix(psMatrix *out,          //!< Matrix to return, or NULL
    85                 psImage *myImage        //!< Image to convert
    8656    );
    8757
Note: See TracChangeset for help on using the changeset viewer.