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

Method ReadAllCameras

src/colmap/scene/database_sqlite.cc:710–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708 }
709
710 std::vector<Camera> ReadAllCameras() const override {
711 Sqlite3StmtContext context(sql_stmt_read_cameras_);
712
713 std::vector<Camera> cameras;
714
715 while (SQLITE3_CALL(sqlite3_step(sql_stmt_read_cameras_)) == SQLITE_ROW) {
716 cameras.push_back(ReadCameraRow(sql_stmt_read_cameras_));
717 }
718
719 return cameras;
720 }
721
722 Frame ReadFrame(const frame_t frame_id) const override {
723 Sqlite3StmtContext context(sql_stmt_read_frame_);

Callers 8

TEST_PFunction · 0.45
TESTFunction · 0.45
MergeMethod · 0.45
LoadMethod · 0.45
MaybeLoadCamerasMethod · 0.45
TESTFunction · 0.45
CalibrateViewGraphFunction · 0.45
ReloadMethod · 0.45

Calls 1

ReadCameraRowFunction · 0.85

Tested by 3

TEST_PFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36