We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c0256 commit 4095ef1Copy full SHA for 4095ef1
modules/ccalib/src/multicalib.cpp
@@ -141,7 +141,7 @@ void MultiCameraCalibration::loadImages()
141
for (int i = 1; i < (int)file_list.size(); ++i)
142
{
143
int cameraVertex, timestamp;
144
- std::string filename = file_list[i].substr(0, file_list[i].find('.'));
+ std::string filename = file_list[i].substr(0, file_list[i].rfind('.'));
145
size_t spritPosition1 = filename.rfind('/');
146
size_t spritPosition2 = filename.rfind('\\');
147
if (spritPosition1!=std::string::npos)
@@ -777,4 +777,4 @@ void MultiCameraCalibration::writeParameters(const std::string& filename)
777
fs << photoTimestamp << _vertexList[photoIdx].pose;
778
}
779
780
-}} // namespace multicalib, cv
+}} // namespace multicalib, cv
0 commit comments