我正在ubuntu 16.04上用C ++进行编码,并试图在两组点之间找到一个变换矩阵。为了做到这一点,我试图使用opencv的cv :: estimateAffine3D函数,但是一旦添加
#include "opencv2/calib3d.hpp"
对于我的代码,我收到此错误:
In file included from /usr/local/include/opencv2/calib3d/calib3d.hpp:47:0,
from /usr/local/include/opencv2/calib3d.hpp:43,
from /home/coordinate-sys-opencv/main.cpp:5:
/usr/local/include/opencv2/features2d/features2d.hpp:69:27: error: redefinition of ‘class cv::KeyPoint’
class CV_EXPORTS_W_SIMPLE KeyPoint
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from /usr/local/include/opencv2/core/core.hpp:48,
from /usr/local/include/opencv2/calib3d/calib3d.hpp:46,
from /usr/local/include/opencv2/calib3d.hpp:43,
from /home/coordinate-sys-opencv/main.cpp:5:
/usr/local/include/opencv2/core/types.hpp:632:27: error: previous definition of ‘class cv::KeyPoint’
class CV_EXPORTS_W_SIMPLE KeyPoint
一长串类似的错误,但没有关键点...
我对opencv还是很陌生,老实说,如果有人可以指出任何很棒的方向,我就有点失落了:)