16 #ifndef mitkVnlVectorFromCvMat_h
17 #define mitkVnlVectorFromCvMat_h
20 #include <vnl/vnl_vector.h>
36 const cv::Mat* _CvMat,
37 vnl_vector<T>* _VnlVector):
38 m_VnlMatrixFromCvMat( _CvMat, &m_VnlMatrix ),
39 m_VnlVector(_VnlVector)
48 m_VnlMatrixFromCvMat.Update();
50 if( m_VnlMatrix.rows() == 1 )
51 *m_VnlVector = m_VnlMatrix.get_row(0);
52 else if( m_VnlMatrix.cols() == 1 )
53 *m_VnlVector = m_VnlMatrix.get_column(0);
60 vnl_matrix<T> m_VnlMatrix;
68 vnl_vector<T>* m_VnlVector;
72 #endif // mitkVnlVectorFromCvMat_h
DataCollection - Class to facilitate loading/accessing structured data.
VnlVectorFromCvMat(const cv::Mat *_CvMat, vnl_vector< T > *_VnlVector)