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

Method ReadNumMatches

src/colmap/scene/database_sqlite.cc:921–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919 }
920
921 std::vector<std::pair<image_pair_t, int>> ReadNumMatches() const override {
922 Sqlite3StmtContext context(sql_stmt_read_num_matches_);
923
924 std::vector<std::pair<image_pair_t, int>> num_matches;
925 while (SQLITE3_CALL(sqlite3_step(sql_stmt_read_num_matches_)) ==
926 SQLITE_ROW) {
927 const image_pair_t pair_id = static_cast<image_pair_t>(
928 sqlite3_column_int64(sql_stmt_read_num_matches_, 0));
929
930 const int rows =
931 static_cast<int>(sqlite3_column_int64(sql_stmt_read_num_matches_, 1));
932 num_matches.emplace_back(pair_id, rows);
933 }
934
935 return num_matches;
936 }
937
938 TwoViewGeometry ReadTwoViewGeometry(const image_t image_id1,
939 const image_t image_id2) const override {

Callers 3

TEST_PFunction · 0.45
RigVerificationFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.36