#include <ublascvmatrix.hxx>
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 |
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.
|
|||||
|
Definition at line 432 of file ublascvmatrix.hxx. |
|
|||||
|
Definition at line 431 of file ublascvmatrix.hxx. |
|
||||||||||||||||
|
Definition at line 452 of file ublascvmatrix.hxx. |
|
||||||||||
|
Definition at line 456 of file ublascvmatrix.hxx. |
|
||||||||||
|
Definition at line 460 of file ublascvmatrix.hxx. |
|
|||||||||
|
Definition at line 438 of file ublascvmatrix.hxx. |
|
||||||||||
|
Definition at line 476 of file ublascvmatrix.hxx. |
|
||||||||||
|
Definition at line 469 of file ublascvmatrix.hxx. |
|
||||||||||
|
Definition at line 464 of file ublascvmatrix.hxx. |
|
|||||
|
Definition at line 434 of file ublascvmatrix.hxx. |
|
|||||
|
Definition at line 435 of file ublascvmatrix.hxx. |
|
|||||
|
Definition at line 436 of file ublascvmatrix.hxx. |
1.4.5