| 44 | namespace colmap { |
| 45 | |
| 46 | FeatureMatcherWorker::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 | |
| 64 | void FeatureMatcherWorker::Run() { |
| 65 | if (opengl_context_ != nullptr) { |
nothing calls this directly
no test coverage detected