Commit 4eac4766470a1679defbf731faab212ea245d6d1

Authored by Scott Klum
1 parent 66db5e4b

Removed toEigen, use opencv's eigen2cv and cv2eigen instead

openbr/core/eigenutils.cpp
... ... @@ -71,12 +71,3 @@ Eigen::MatrixXf EigenUtils::matrixToVector(const Eigen::MatrixXf matrix) {
71 71 }
72 72 return vector;
73 73 }
74   -
75   -Eigen::MatrixXf EigenUtils::toEigen(const Mat m) {
76   - if (m.type() != CV_32F)
77   - qFatal("Mat to Eigen Converstation only supports CV_32F");
78   -
79   - Eigen::MatrixXf data(m.rows, m.cols);
80   - return Eigen::Map<const Eigen::MatrixXf>(m.ptr<float>(), m.rows, m.cols);
81   -}
82   -
... ...
openbr/core/eigenutils.h
... ... @@ -78,9 +78,6 @@ namespace EigenUtils
78 78  
79 79 // Compute the element-wise standard deviation
80 80 float eigStd(const Eigen::MatrixXf& x);
81   -
82   - // Convert cv::Mat to Eigen
83   - Eigen::MatrixXf toEigen(const cv::Mat m);
84 81 }
85 82  
86 83 template<typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
... ...