Open JiaqiongLi opened 3 years ago
Hi! I am getting through the same problem, did you solve it?!
In line 29 and 30, change 'color' and 'depth' to absolute paths. Also check the format of fmt: For example:
boost::format fmt("%s/%d.%s"); // fmt format
// read images here
colorImgs.push_back(cv::imread((fmt % "/home/dinvincible98/slambook2/ch5/rgbd/color" % (i + 1) % "png").str()));
depthImgs.push_back(cv::imread((fmt % "/home/dinvincible98/slambook2/ch5/rgbd/depth" % (i + 1) % "pgm").str(), -1));
The relative path will fail when your executable is in the build folder. So change the boost format into absolute path.
boost::format fmt("/home/yan/Learning/slam/slambook2/ch5/rgbd/%s/%d.%s");