linux opencv flann 与pcl flann冲突

解决方法:将opencv的flann名重命名为flann2,mv /usr/include/opencv2/flann /usr/include/opencv2/flann2 

1.需改features2d.hpp中

#include "opencv2/flann2/miniflann.hpp"

2.修改flann2/miniflann.hpp

#include "opencv2/flann2/defines.h"

3.修改flann.hpp

#include "opencv2/flann2/miniflann.hpp"

#include "opencv2/flann2/flann_base.hpp"

你可能感兴趣的:(opencv,人工智能)