CWrapCvMat< WrapMatrixClass > Class Template Reference

resizable matrix class. test code. does't work. More...

#include <ublascvmatrix.hxx>

List of all members.

Public Types

typedef WrapMatrixClass wrap_matrix_type
typedef WrapMatrixClass::value_type value_type

Public Member Functions

void initializeData ()
 CWrapCvMat (int n1, int n2)
 CWrapCvMat (const CWrapCvMat< WrapMatrixClass > &inputMatrix)
 CWrapCvMat (const WrapMatrixClass &inputMatrix)
CWrapCvMat< WrapMatrixClass > & operator= (wrap_matrix_type inputMatrix)
CWrapCvMat< WrapMatrixClass > & operator= (CvMat inputMatrix)
CWrapCvMat< WrapMatrixClass > & operator= (CWrapCvMat< WrapMatrixClass > inputMatrix)

Public Attributes

CCvMatDepth< typename WrapMatrixClass::value_type > cvMatDepth
wrap_matrix_type *const p_wrap_matrix
CvMat *const pCvMat


Detailed Description

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
class CWrapCvMat< WrapMatrixClass >

resizable matrix class. test code. does't work.

This is the resizable size matrix class can use as matrix of OpenCV and c_matrix of uBLAS. But does't work. 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::matrix and CvMat.

Usage:

        #include "stllcv/ublascvmatrix.hxx"
        //init as identity_matrix
        CWrapCvMat<boost::numeric::ublas::matrix<float> > mat((boost::numeric::ublas::matrix<float>)boost::numeric::ublas::identity_matrix<float>(4));
        std::cout << "mat= " << mat  << std::endl;
        
        

        CWrapCvMat<boost::numeric::ublas::matrix<float> > matI((boost::numeric::ublas::matrix<float>)boost::numeric::ublas::identity_matrix<float>(4)); 

        //multiple as uBLAS
        mat *= 2 ; 
        std::cout << "mat= " << mat  << std::endl;

        cvmInvert(&(CvMat)mat, &(CvMat)matI );
        std::cout << "matI= " << matI  << std::endl;


        cvInvert(mat.pCvMat, matI.pCvMat );
        std::cout << "matI= " << matI  << std::endl;

See also:

Definition at line 427 of file ublascvmatrix.hxx.


Member Typedef Documentation

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
typedef WrapMatrixClass::value_type CWrapCvMat< WrapMatrixClass >::value_type
 

Definition at line 432 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
typedef WrapMatrixClass CWrapCvMat< WrapMatrixClass >::wrap_matrix_type
 

Definition at line 431 of file ublascvmatrix.hxx.


Constructor & Destructor Documentation

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat< WrapMatrixClass >::CWrapCvMat int  n1,
int  n2
[inline]
 

Definition at line 452 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat< WrapMatrixClass >::CWrapCvMat const CWrapCvMat< WrapMatrixClass > &  inputMatrix  )  [inline]
 

Definition at line 456 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat< WrapMatrixClass >::CWrapCvMat const WrapMatrixClass &  inputMatrix  )  [inline]
 

Definition at line 460 of file ublascvmatrix.hxx.


Member Function Documentation

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
void CWrapCvMat< WrapMatrixClass >::initializeData  )  [inline]
 

Definition at line 438 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat<WrapMatrixClass>& CWrapCvMat< WrapMatrixClass >::operator= CWrapCvMat< WrapMatrixClass >  inputMatrix  )  [inline]
 

Definition at line 476 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat<WrapMatrixClass>& CWrapCvMat< WrapMatrixClass >::operator= CvMat  inputMatrix  )  [inline]
 

Definition at line 469 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CWrapCvMat<WrapMatrixClass>& CWrapCvMat< WrapMatrixClass >::operator= wrap_matrix_type  inputMatrix  )  [inline]
 

Definition at line 464 of file ublascvmatrix.hxx.


Member Data Documentation

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CCvMatDepth< typename WrapMatrixClass::value_type > CWrapCvMat< WrapMatrixClass >::cvMatDepth
 

Definition at line 434 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
wrap_matrix_type* const CWrapCvMat< WrapMatrixClass >::p_wrap_matrix
 

Definition at line 435 of file ublascvmatrix.hxx.

template<class WrapMatrixClass = boost::numeric::ublas::matrix<float>>
CvMat* const CWrapCvMat< WrapMatrixClass >::pCvMat
 

Definition at line 436 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