Commit 4095ef10 authored by cDc's avatar cDc Committed by GitHub

Fix name extraction from path in multicalib

parent 23c02563
......@@ -141,7 +141,7 @@ void MultiCameraCalibration::loadImages()
for (int i = 1; i < (int)file_list.size(); ++i)
{
int cameraVertex, timestamp;
std::string filename = file_list[i].substr(0, file_list[i].find('.'));
std::string filename = file_list[i].substr(0, file_list[i].rfind('.'));
size_t spritPosition1 = filename.rfind('/');
size_t spritPosition2 = filename.rfind('\\');
if (spritPosition1!=std::string::npos)
......@@ -777,4 +777,4 @@ void MultiCameraCalibration::writeParameters(const std::string& filename)
fs << photoTimestamp << _vertexList[photoIdx].pose;
}
}
}} // namespace multicalib, cv
\ No newline at end of file
}} // namespace multicalib, cv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment