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

Function RunSequentialMatcher

src/colmap/exe/feature.cc:278–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278int RunSequentialMatcher(int argc, char** argv) {
279 OptionManager options;
280 options.AddDatabaseOptions();
281 options.AddSequentialPairingOptions();
282 if (!options.Parse(argc, argv)) {
283 return EXIT_FAILURE;
284 }
285
286 std::unique_ptr<QApplication> app;
287 if (options.feature_matching->RequiresOpenGL()) {
288 app = std::make_unique<QApplication>(argc, argv);
289 }
290
291 auto matcher = CreateSequentialFeatureMatcher(*options.sequential_pairing,
292 *options.feature_matching,
293 *options.two_view_geometry,
294 *options.database_path);
295
296 if (app != nullptr) {
297 RunThreadWithOpenGLContext(matcher.get());
298 } else {
299 matcher->Start();
300 matcher->Wait();
301 }
302
303 return EXIT_SUCCESS;
304}
305
306int RunSpatialMatcher(int argc, char** argv) {
307 OptionManager options;

Callers

nothing calls this directly

Calls 8

AddDatabaseOptionsMethod · 0.80
ParseMethod · 0.80
RequiresOpenGLMethod · 0.45
StartMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected