From b4ac7ae72d6caed3959fbe502fd748f020cfe6ba Mon Sep 17 00:00:00 2001 From: edgarriba Date: Mon, 30 Nov 2015 15:48:38 +0000 Subject: [PATCH] adapt code to read line per line Former-commit-id: 443f6e9342c9900d4c39594ecf4713c51e2931ed --- modules/odm_texturing/src/OdmTexturing.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/odm_texturing/src/OdmTexturing.cpp b/modules/odm_texturing/src/OdmTexturing.cpp index 188d206b..20da8900 100644 --- a/modules/odm_texturing/src/OdmTexturing.cpp +++ b/modules/odm_texturing/src/OdmTexturing.cpp @@ -342,7 +342,7 @@ void OdmTexturing::loadCameras() cam.pose = transform; std::getline(imageListFile, dummyLine); - size_t firstWhitespace = dummyLine.find_first_of(" "); + /*size_t firstWhitespace = dummyLine.find_first_of(" "); if (firstWhitespace != std::string::npos) { @@ -351,7 +351,10 @@ void OdmTexturing::loadCameras() else { cam.texture_file = imagesPath_ + "/" + dummyLine.substr(2); - } + }*/ + + cam.texture_file = imagesPath_ + "/" + dummyLine; + // Read image to get full resolution size cv::Mat image = cv::imread(cam.texture_file);