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

Method UpdateFrame

src/colmap/scene/database_sqlite.cc:1447–1468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445 }
1446
1447 void UpdateFrame(const Frame& frame) override {
1448 // Update frame.
1449 {
1450 Sqlite3StmtContext context(sql_stmt_update_frame_);
1451 SQLITE3_CALL(
1452 sqlite3_bind_int64(sql_stmt_update_frame_, 1, frame.RigId()));
1453 SQLITE3_CALL(
1454 sqlite3_bind_int64(sql_stmt_update_frame_, 2, frame.FrameId()));
1455 SQLITE3_CALL(sqlite3_step(sql_stmt_update_frame_));
1456 }
1457
1458 // Clear the frame data.
1459 {
1460 Sqlite3StmtContext context(sql_stmt_delete_frame_data_);
1461 SQLITE3_CALL(
1462 sqlite3_bind_int64(sql_stmt_delete_frame_data_, 1, frame.FrameId()));
1463 SQLITE3_CALL(sqlite3_step(sql_stmt_delete_frame_data_));
1464 }
1465
1466 // Write the updated frame data.
1467 WriteFrameData(frame.FrameId(), frame, sql_stmt_write_frame_data_);
1468 }
1469
1470 void UpdateImage(const Image& image) override {
1471 if (image.HasFrameId()) {

Callers 1

TEST_PFunction · 0.45

Calls 3

WriteFrameDataFunction · 0.85
RigIdMethod · 0.45
FrameIdMethod · 0.45

Tested by 1

TEST_PFunction · 0.36