Skip to content

Commit b768f5d

Browse files
author
kintzhao
authored
fixed CV_LOAD_IMAGE_ANYDEPTH for melodic
pkg-config --modversion opencv 3.4.18
1 parent 5d0a76d commit b768f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataset/kaist_pub.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int main(int argc, char* argv[]) {
115115
const string& sensor_type = line_data_vec[1];
116116
if (sensor_type == "stereo") {
117117
const string img_file = sData_path + "/image/stereo_left/" + time_str + ".png";
118-
const cv::Mat raw_image = cv::imread(img_file, CV_LOAD_IMAGE_ANYDEPTH);
118+
const cv::Mat raw_image = cv::imread(img_file, IMREAD_ANYDEPTH);
119119
if (raw_image.empty()) {
120120
cerr << "[PublishData]: Failed to open image at time: " << time_str;
121121
return -1;

0 commit comments

Comments
 (0)