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

Method WriteDescriptors

src/colmap/scene/database_sqlite.cc:1277–1287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275 }
1276
1277 void WriteDescriptors(const image_t image_id,
1278 const FeatureDescriptors& descriptors) override {
1279 Sqlite3StmtContext context(sql_stmt_write_descriptors_);
1280
1281 SQLITE3_CALL(sqlite3_bind_int64(sql_stmt_write_descriptors_, 1, image_id));
1282 WriteDynamicMatrixBlob(sql_stmt_write_descriptors_, descriptors.data, 2);
1283 SQLITE3_CALL(sqlite3_bind_int(
1284 sql_stmt_write_descriptors_, 5, static_cast<int>(descriptors.type)));
1285
1286 SQLITE3_CALL(sqlite3_step(sql_stmt_write_descriptors_));
1287 }
1288
1289 void WriteMatches(const image_t image_id1,
1290 const image_t image_id2,

Callers 8

TEST_PFunction · 0.45
SynthesizeDatasetFunction · 0.45
MergeMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45

Calls 1

WriteDynamicMatrixBlobFunction · 0.85

Tested by 4

TEST_PFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36