acfr / cam_lidar_calibration

(ITSC 2021) Optimising the selection of samples for robust lidar camera calibration. This package estimates the calibration parameters from camera to lidar frame.
Apache License 2.0
457 stars 107 forks source link

openCV issue with new cv version #41

Closed AxelCORNILLEAU closed 1 year ago

AxelCORNILLEAU commented 1 year ago

catkin_ws/src/cam_lidar_calibration/include/cam_lidar_calibration/optimiser.h:10:10: fatal error: opencv/cv.hpp: No such file or directory 10 | #include <opencv/cv.hpp> | ^~~~~~~ compilation terminated.

Solution : in optimiser .h just change line 10

// #include <opencv/cv.hpp>
#include <opencv2/opencv.hpp>

and in optimiser.cpp change line 427 : cv::reduce(trans_diff, summed_diff, 1, cv::REDUCE_SUM, CV_64F);