From 5344356f64b16980ee506a0303b67614d903f369 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Wed, 31 Jul 2019 17:40:52 +0300 Subject: [PATCH] config: add extrinsic file option --- components/rgbd-sources/src/calibrate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/calibrate.cpp b/components/rgbd-sources/src/calibrate.cpp index 6a1ce0620..17090992f 100644 --- a/components/rgbd-sources/src/calibrate.cpp +++ b/components/rgbd-sources/src/calibrate.cpp @@ -94,7 +94,7 @@ bool Calibrate::_loadCalibration(cv::Size img_size, std::pair<Mat, Mat> &map1, s CHECK(D1_.size() == Size(5, 1)); CHECK(D2_.size() == Size(5, 1)); - auto efile = ftl::locateFile("extrinsics.yml"); + auto efile = ftl::locateFile(value("extrinsics", std::string("extrinsics.yml"))); if (efile) { fs.open((*efile).c_str(), FileStorage::READ); if (!fs.isOpened()) { -- GitLab