12 #ifndef mitkVnlVectorFromCvMat_h
13 #define mitkVnlVectorFromCvMat_h
16 #include <vnl/vnl_vector.h>
32 const cv::Mat* _CvMat,
33 vnl_vector<T>* _VnlVector):
34 m_VnlMatrixFromCvMat( _CvMat, &m_VnlMatrix ),
35 m_VnlVector(_VnlVector)
44 m_VnlMatrixFromCvMat.Update();
46 if( m_VnlMatrix.rows() == 1 )
47 *m_VnlVector = m_VnlMatrix.get_row(0);
48 else if( m_VnlMatrix.cols() == 1 )
49 *m_VnlVector = m_VnlMatrix.get_column(0);
56 vnl_matrix<T> m_VnlMatrix;
64 vnl_vector<T>* m_VnlVector;