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

Method ReadImage

src/colmap/scene/database_sqlite.cc:748–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746 }
747
748 Image ReadImage(const image_t image_id) const override {
749 Sqlite3StmtContext context(sql_stmt_read_image_id_);
750
751 SQLITE3_CALL(sqlite3_bind_int64(sql_stmt_read_image_id_, 1, image_id));
752
753 Image image;
754
755 const int rc = SQLITE3_CALL(sqlite3_step(sql_stmt_read_image_id_));
756 if (rc == SQLITE_ROW) {
757 image = ReadImageRow(sql_stmt_read_image_id_);
758 }
759
760 return image;
761 }
762
763 std::optional<Image> ReadImageWithName(
764 const std::string& name) const override {

Callers 4

TEST_PFunction · 0.45
TESTFunction · 0.45
ReloadMethod · 0.45

Calls 1

ReadImageRowFunction · 0.85

Tested by 2

TEST_PFunction · 0.36
TESTFunction · 0.36