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

Function ReadImageRow

src/colmap/scene/database_sqlite.cc:387–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387Image ReadImageRow(sqlite3_stmt* sql_stmt) {
388 Image image;
389
390 image.SetImageId(static_cast<image_t>(sqlite3_column_int64(sql_stmt, 0)));
391 image.SetName(std::string(
392 reinterpret_cast<const char*>(sqlite3_column_text(sql_stmt, 1))));
393 image.SetCameraId(static_cast<camera_t>(sqlite3_column_int64(sql_stmt, 2)));
394 if (sqlite3_column_type(sql_stmt, 3) != SQLITE_NULL) {
395 image.SetFrameId(static_cast<frame_t>(sqlite3_column_int64(sql_stmt, 3)));
396 }
397
398 return image;
399}
400
401PosePrior ReadPosePriorRow(sqlite3_stmt* sql_stmt) {
402 PosePrior pose_prior;

Callers 3

ReadImageMethod · 0.85
ReadImageWithNameMethod · 0.85
ReadAllImagesMethod · 0.85

Calls 4

SetImageIdMethod · 0.80
SetNameMethod · 0.80
SetCameraIdMethod · 0.80
SetFrameIdMethod · 0.45

Tested by

no test coverage detected