ethz-asl / kitti_to_rosbag

Dataset tools for working with the KITTI dataset raw data ( http://www.cvlibs.net/datasets/kitti/raw_data.php ) and converting it to a ROS bag. Also allows a library for direct access to poses, velodyne scans, and images.
248 stars 100 forks source link

Error in reading image from the filename #19

Closed virajawate closed 1 month ago

virajawate commented 1 month ago

‘CV_IMAGE_UNCHANGED’ was not declared in this scope

error: ‘CV_IMAGE_UNCHANGED’ was not declared in this scope
  497 |   *image = cv::imread(filename, CV_IMAGE_UNCHANGED);
virajawate commented 1 month ago

Change :

kitti_parser.cpp:497:33: error: ‘CV_IMAGE_UNCHANGED’ was not declared in this scope
  497 |   *image = cv::imread(filename, CV_IMAGE_UNCHANGED);

To : *image = cv::imread(filename, cv::IMREAD_UNCHANGED);