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

Method FeatureMatcherWorker

src/colmap/controllers/feature_matching_utils.cc:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace colmap {
45
46FeatureMatcherWorker::FeatureMatcherWorker(
47 const FeatureMatchingOptions& matching_options,
48 const TwoViewGeometryOptions& geometry_options,
49 const std::shared_ptr<FeatureMatcherCache>& cache,
50 JobQueue<Input>* input_queue,
51 JobQueue<Output>* output_queue)
52 : matching_options_(matching_options),
53 geometry_options_(geometry_options),
54 cache_(cache),
55 input_queue_(input_queue),
56 output_queue_(output_queue) {
57 THROW_CHECK(matching_options_.Check());
58
59 if (matching_options_.RequiresOpenGL()) {
60 opengl_context_ = std::make_unique<OpenGLContextManager>();
61 }
62}
63
64void FeatureMatcherWorker::Run() {
65 if (opengl_context_ != nullptr) {

Callers

nothing calls this directly

Calls 2

CheckMethod · 0.45
RequiresOpenGLMethod · 0.45

Tested by

no test coverage detected