正确的头文件包含顺序
#include <Eigen/Dense>
#include <opencv2/core/eigen.hpp>
必须保证Dense先包含,再包含eigen.hpp否则编译有问题 : error: ‘Eigen’ does not name a type void eigen2cv( const Eigen::Matrix<_Tp, _rows, _cols, _options, _maxRows, _maxCols>& src, Mat& dst )