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

Function WriteFrameData

src/colmap/scene/database_sqlite.cc:453–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void WriteFrameData(const frame_t frame_id,
454 const Frame& frame,
455 sqlite3_stmt* sql_stmt) {
456 for (const data_t& data_id : frame.DataIds()) {
457 Sqlite3StmtContext context(sql_stmt);
458 SQLITE3_CALL(sqlite3_bind_int64(sql_stmt, 1, frame_id));
459 SQLITE3_CALL(sqlite3_bind_int64(
460 sql_stmt, 2, static_cast<sqlite3_int64>(data_id.id)));
461 SQLITE3_CALL(sqlite3_bind_int64(
462 sql_stmt, 3, static_cast<sqlite3_int64>(data_id.sensor_id.id)));
463 SQLITE3_CALL(sqlite3_bind_int64(
464 sql_stmt, 4, static_cast<sqlite3_int64>(data_id.sensor_id.type)));
465 SQLITE3_CALL(sqlite3_step(sql_stmt));
466 }
467}
468
469// TODO(jsch): Change is_deprecated_image_prior default to false after next
470// version release (3.14 or 4.0) and remove the parameter in (3.15 or 4.1).

Callers 2

WriteFrameMethod · 0.85
UpdateFrameMethod · 0.85

Calls 1

DataIdsMethod · 0.80

Tested by

no test coverage detected