CublasCvMatrix< T, Ni, Nj > Class Template Reference

Fixed size matrix class. More...

#include <ublascvmatrix.hxx>

List of all members.

Public Types

typedef boost::numeric::ublas::c_matrix<
T, Ni, Nj > 
ublas_c_matrix_type

Public Member Functions

void initializeData ()
 CublasCvMatrix ()
 CublasCvMatrix (const CublasCvMatrix< T, Ni, Nj > &inputMatrix)
 CublasCvMatrix (const ublas_c_matrix_type &inputMatrix)
CublasCvMatrix< T, Ni, Nj > & operator= (ublas_c_matrix_type inputMatrix)
CublasCvMatrix< T, Ni, Nj > & operator= (CvMat inputMatrix)
CublasCvMatrix< T, Ni, Nj > & operator= (CublasCvMatrix< T, Ni, Nj > inputMatrix)

Public Attributes

CCvMatDepth< T > cvMatDepth
ublas_c_matrix_type *const p_ublas_matrix
CvMat *const pCvMat


Detailed Description

template<class T, unsigned int Ni, unsigned int Nj>
class CublasCvMatrix< T, Ni, Nj >

Fixed size matrix class.

This is the fixed size matrix class can use as matrix of OpenCV and c_matrix of uBLAS. This class can use as matrix of OpenCV with cast (CvMat) like

(CvMat) class_instance.

And also use as Fixed size matrix class of ublas like

uBLAS_operation (class_instance).

This class is multiple inherited ublas::c_matrix and CvMat. Matrices are strored in a column-major format, i.e. the row index is varying fastest.

Usage:

        #include "stllcv/ublascvmatrix.hxx"
        //init matrix
        CublasCvMatrix<float,3,3> A;
        A[0][0]=3; A[0][1]=2; A[0][2]=1;
        A[1][0]=1; A[1][1]=1; A[1][2]=4;
        A[2][0]=3; A[2][1]=2; A[2][2]=5;

        
        CublasCvMatrix<float,3,3> B;

        //Multiple as OpenCV matrix
        cvMatMul( &(CvMat)A , &(CvMat)A, &(CvMat) B );

        //Mutiple as uBLAS matrix
        B =boost::numeric::ublas::prod (A,A);

See also:

Definition at line 183 of file ublascvmatrix.hxx.


Member Typedef Documentation

template<class T, unsigned int Ni, unsigned int Nj>
typedef boost::numeric::ublas::c_matrix<T,Ni,Nj> CublasCvMatrix< T, Ni, Nj >::ublas_c_matrix_type
 

Definition at line 187 of file ublascvmatrix.hxx.


Constructor & Destructor Documentation

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix< T, Ni, Nj >::CublasCvMatrix  )  [inline]
 

Definition at line 200 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix< T, Ni, Nj >::CublasCvMatrix const CublasCvMatrix< T, Ni, Nj > &  inputMatrix  )  [inline]
 

Definition at line 204 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix< T, Ni, Nj >::CublasCvMatrix const ublas_c_matrix_type inputMatrix  )  [inline]
 

Definition at line 209 of file ublascvmatrix.hxx.


Member Function Documentation

template<class T, unsigned int Ni, unsigned int Nj>
void CublasCvMatrix< T, Ni, Nj >::initializeData  )  [inline]
 

Definition at line 192 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix<T,Ni,Nj>& CublasCvMatrix< T, Ni, Nj >::operator= CublasCvMatrix< T, Ni, Nj >  inputMatrix  )  [inline]
 

Definition at line 226 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix<T,Ni,Nj>& CublasCvMatrix< T, Ni, Nj >::operator= CvMat  inputMatrix  )  [inline]
 

Definition at line 219 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CublasCvMatrix<T,Ni,Nj>& CublasCvMatrix< T, Ni, Nj >::operator= ublas_c_matrix_type  inputMatrix  )  [inline]
 

Definition at line 214 of file ublascvmatrix.hxx.


Member Data Documentation

template<class T, unsigned int Ni, unsigned int Nj>
CCvMatDepth<T> CublasCvMatrix< T, Ni, Nj >::cvMatDepth
 

Definition at line 188 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
ublas_c_matrix_type* const CublasCvMatrix< T, Ni, Nj >::p_ublas_matrix
 

Definition at line 189 of file ublascvmatrix.hxx.

template<class T, unsigned int Ni, unsigned int Nj>
CvMat* const CublasCvMatrix< T, Ni, Nj >::pCvMat
 

Definition at line 190 of file ublascvmatrix.hxx.


The documentation for this class was generated from the following file:
Generated on Thu Oct 27 21:27:44 2005 for STL like OpenCV wrapper (STLLCV) by  doxygen 1.4.5