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

Function run_matcher

python/examples/panorama_sfm.py:457–481  ·  view source on GitHub ↗
(
    args: argparse.Namespace,
    database_path: Path,
    matching_options: pycolmap.FeatureMatchingOptions,
)

Source from the content-addressed store, hash-verified

455
456
457def run_matcher(
458 args: argparse.Namespace,
459 database_path: Path,
460 matching_options: pycolmap.FeatureMatchingOptions,
461) -> None:
462 if args.matcher == "sequential":
463 pycolmap.match_sequential(
464 database_path,
465 pairing_options=pycolmap.SequentialPairingOptions(
466 loop_detection=True
467 ),
468 matching_options=matching_options,
469 )
470 elif args.matcher == "exhaustive":
471 pycolmap.match_exhaustive(
472 database_path, matching_options=matching_options
473 )
474 elif args.matcher == "vocabtree":
475 pycolmap.match_vocabtree(
476 database_path, matching_options=matching_options
477 )
478 elif args.matcher == "spatial":
479 pycolmap.match_spatial(database_path, matching_options=matching_options)
480 else:
481 logging.fatal(f"Unknown matcher: {args.matcher}")
482
483
484def run_spherical(

Callers 2

run_sphericalFunction · 0.85
run_perspectiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected