(
args: argparse.Namespace,
database_path: Path,
matching_options: pycolmap.FeatureMatchingOptions,
)
| 455 | |
| 456 | |
| 457 | def 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 | |
| 484 | def run_spherical( |
no outgoing calls
no test coverage detected