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

Method ReadMatchesBlob

src/colmap/scene/database_sqlite.cc:861–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859 }
860
861 FeatureMatchesBlob ReadMatchesBlob(image_t image_id1,
862 image_t image_id2) const override {
863 Sqlite3StmtContext context(sql_stmt_read_matches_);
864
865 const image_pair_t pair_id = ImagePairToPairId(image_id1, image_id2);
866 SQLITE3_CALL(sqlite3_bind_int64(sql_stmt_read_matches_, 1, pair_id));
867
868 const int rc = SQLITE3_CALL(sqlite3_step(sql_stmt_read_matches_));
869 FeatureMatchesBlob blob = ReadDynamicMatrixBlob<FeatureMatchesBlob>(
870 sql_stmt_read_matches_, rc, 0);
871
872 if (ShouldSwapImagePair(image_id1, image_id2)) {
873 SwapFeatureMatchesBlob(&blob);
874 }
875 return blob;
876 }
877
878 FeatureMatches ReadMatches(image_t image_id1,
879 image_t image_id2) const override {

Callers

nothing calls this directly

Calls 3

ImagePairToPairIdFunction · 0.85
ShouldSwapImagePairFunction · 0.85
SwapFeatureMatchesBlobFunction · 0.85

Tested by

no test coverage detected