Install Code for TUM Monocular Visual Odometry Dataset

Posted by Tong on November 25, 2018

source code

在安装thirdparty/aruco-1.3.0,碰到下面的问题

Error 1

/home/tong/Applications/mono_dataset_code/thirdparty/aruco-1.3.0/utils/aruco_test_board_gl_mask.cpp:171:3: error: ‘rectangle’ is not a member of ‘cv’
   cv::rectangle(mask,cv::Rect(img.cols/4, img.rows/4, img.cols/2, img.rows/2),

/home/tong/Applications/mono_dataset_code/thirdparty/aruco-1.3.0/utils/aruco_test_board_gl.cpp: In function ‘void vIdle()’:
/home/tong/Applications/mono_dataset_code/thirdparty/aruco-1.3.0/utils/aruco_test_board_gl.cpp:273:9: error: ‘cvtColor’ is not a member of ‘cv’
   cv::cvtColor(TheInputImage,TheInputImage,CV_BGR2RGB);

Solution: 这主要是使用的opencv版本不同带来的问题,打开aruco_test_board_gl_mask.cpp.cpputilsaruco_test_board_gl.cpp.cpp,加入下面头文件

#include "opencv2/imgproc.hpp"