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

Method GeometricVerifierController

src/colmap/controllers/feature_matching_utils.cc:521–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521GeometricVerifierController::GeometricVerifierController(
522 const GeometricVerifierOptions& options,
523 const TwoViewGeometryOptions& geometry_options,
524 std::shared_ptr<FeatureMatcherCache> cache)
525 : geometry_options_(geometry_options),
526 cache_(std::move(cache)),
527 options_(options),
528 is_setup_(false) {
529 THROW_CHECK(geometry_options_.Check());
530
531 const int num_threads = GetEffectiveNumThreads(options_.num_threads);
532
533 // Run geometric verification
534 for (int i = 0; i < num_threads; ++i) {
535 verifiers_.emplace_back(
536 std::make_unique<VerifierWorker>(geometry_options_,
537 cache_,
538 &verifier_queue_,
539 &output_queue_,
540 options_.use_existing_relative_pose));
541 }
542}
543
544GeometricVerifierController::~GeometricVerifierController() {
545 verifier_queue_.Wait();

Callers

nothing calls this directly

Calls 2

GetEffectiveNumThreadsFunction · 0.85
CheckMethod · 0.45

Tested by

no test coverage detected