心有所向,日复一日,必有精进。|

榴红八色鸫

园龄:3年8个月粉丝:1关注:12

error: No matching function for call to 'cv2eigen'的解决方法

报错

#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/core/eigen.hpp>
#include <Eigen/Core>
#include <Eigen/Dense>

报错

/home/ubuntu/桌面/measure/measure/main.cpp:3: error: In included file: "Wrong usage of OpenCV's Eigen utility header. Include Eigen's headers first. See https://github.com/opencv/opencv/issues/17366"
cv::cv2eigen();
cv::cv2eigen();
cv::cv2eigen();
/home/ubuntu/桌面/measure/measure/main.cpp:50: error: No matching function for call to 'cv2eigen'

解决办法

https://github.com/opencv/opencv/issues/17366

#include ... Eigen headers ...
#include <opencv2/core/eigen.hpp>

本文作者:榴红八色鸫

本文链接:https://www.cnblogs.com/hezexian/p/16768133.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   榴红八色鸫  阅读(382)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起