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

Method CreateDescriptorsTable

src/colmap/scene/database_sqlite.cc:2021–2033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2019 }
2020
2021 void CreateDescriptorsTable() const {
2022 const std::string sql =
2023 "CREATE TABLE IF NOT EXISTS descriptors"
2024 " (image_id INTEGER PRIMARY KEY NOT NULL,"
2025 " type INTEGER NOT NULL,"
2026 " rows INTEGER NOT NULL,"
2027 " cols INTEGER NOT NULL,"
2028 " data BLOB,"
2029 " FOREIGN KEY(image_id) REFERENCES images(image_id) ON DELETE "
2030 "CASCADE);";
2031
2032 SQLITE3_EXEC(database_, sql.c_str(), nullptr);
2033 }
2034
2035 void CreateMatchesTable() const {
2036 const std::string sql =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected