CublasCvVector< T, N > Class Template Reference

Fixed size vector class. More...

#include <ublascvmatrix.hxx>

List of all members.

Public Types

typedef boost::numeric::ublas::c_vector<
T, N > 
ublas_c_vector_type

Public Member Functions

void initializeData ()
 CublasCvVector ()
 CublasCvVector (const CublasCvVector< T, N > &inputVector)
 CublasCvVector (const ublas_c_vector_type &inputVector)
CublasCvVector< T, N > & operator= (ublas_c_vector_type inputVector)
CublasCvVector< T, N > & operator= (CvMat inputMatrix)
CublasCvVector< T, N > & operator= (CublasCvVector< T, N > inputVector)

Public Attributes

CCvMatDepth< T > cvMatDepth
CvMat *const pCvMat
ublas_c_vector_type *const p_ublas_vector


Detailed Description

template<class T, unsigned int N>
class CublasCvVector< T, N >

Fixed size vector class.

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

(CvMat) class_instance.

And also use as fixed size vector class of ublas like

uBLAS_operation (class_instance).

This class is multiple inherited ublas::c_vector and CvMat.

Usage:

        #include "stllcv/ublascvmatrix.hxx"

        //init vector
        CublasCvVector<float,3> V;
        V[0]=1 ; V[1]=2 ; V[2]=4;

        //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;

        
        CublasCvVector<float,3> U;

        //multiple as OpenCV matrix
        cvMatMul( &(CvMat)A , &(CvMat)V, &(CvMat) U );

        //mutiple as uBLAS matrix
        U =boost::numeric::ublas::prod (A,V);

See also:

Definition at line 291 of file ublascvmatrix.hxx.


Member Typedef Documentation

template<class T, unsigned int N>
typedef boost::numeric::ublas::c_vector<T,N> CublasCvVector< T, N >::ublas_c_vector_type
 

Definition at line 295 of file ublascvmatrix.hxx.


Constructor & Destructor Documentation

template<class T, unsigned int N>
CublasCvVector< T, N >::CublasCvVector  )  [inline]
 

Definition at line 309 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CublasCvVector< T, N >::CublasCvVector const CublasCvVector< T, N > &  inputVector  )  [inline]
 

Definition at line 314 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CublasCvVector< T, N >::CublasCvVector const ublas_c_vector_type inputVector  )  [inline]
 

Definition at line 319 of file ublascvmatrix.hxx.


Member Function Documentation

template<class T, unsigned int N>
void CublasCvVector< T, N >::initializeData  )  [inline]
 

Definition at line 300 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CublasCvVector<T,N>& CublasCvVector< T, N >::operator= CublasCvVector< T, N >  inputVector  )  [inline]
 

Definition at line 336 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CublasCvVector<T,N>& CublasCvVector< T, N >::operator= CvMat  inputMatrix  )  [inline]
 

Definition at line 330 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CublasCvVector<T,N>& CublasCvVector< T, N >::operator= ublas_c_vector_type  inputVector  )  [inline]
 

Definition at line 325 of file ublascvmatrix.hxx.


Member Data Documentation

template<class T, unsigned int N>
CCvMatDepth<T> CublasCvVector< T, N >::cvMatDepth
 

Definition at line 296 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
ublas_c_vector_type* const CublasCvVector< T, N >::p_ublas_vector
 

Definition at line 298 of file ublascvmatrix.hxx.

template<class T, unsigned int N>
CvMat* const CublasCvVector< T, N >::pCvMat
 

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