MCPcopy Create free account
hub / github.com/colmap/colmap / ReadTextFileLines

Function ReadTextFileLines

src/colmap/util/file.cc:284–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284std::vector<std::string> ReadTextFileLines(const std::filesystem::path& path) {
285 std::ifstream file(path);
286 THROW_CHECK_FILE_OPEN(file, path);
287
288 std::string line;
289 std::vector<std::string> lines;
290 while (std::getline(file, line)) {
291 StringTrim(&line);
292
293 if (line.empty()) {
294 continue;
295 }
296
297 lines.push_back(line);
298 }
299
300 return lines;
301}
302
303bool IsURI(const std::string& uri) {
304 return StringStartsWith(uri, "http://") ||

Callers 13

PostParseMethod · 0.85
ReadFileCameraLocationsFunction · 0.85
ReadStereoImagePairsFunction · 0.85
RunImageDeleterFunction · 0.85
RunImageUndistorterFunction · 0.85
RunRotationAveragerFunction · 0.85
RunFeatureExtractorFunction · 0.85
RunFeatureImporterFunction · 0.85
ImportPMVSWorkspaceFunction · 0.85
ReadProblemsMethod · 0.85

Calls 2

StringTrimFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected