adapt code to read line per line

Former-commit-id: 443f6e9342
pull/1161/head
edgarriba 2015-11-30 15:48:38 +00:00
rodzic 66af416a9e
commit b4ac7ae72d
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -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);