| 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 { |
no outgoing calls