首页 > 其他分享 >error: No matching function for call to 'cv2eigen'的解决方法

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

时间:2022-10-08 10:22:55浏览次数:72  
标签:function No error cv2eigen opencv measure include

报错

#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>

标签:function,No,error,cv2eigen,opencv,measure,include
From: https://www.cnblogs.com/hezexian/p/16768133.html

相关文章