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

Method Run

src/colmap/controllers/feature_extraction.cc:112–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111 private:
112 void Run() override {
113 while (true) {
114 if (IsStopped()) {
115 break;
116 }
117
118 auto input_job = input_queue_->Pop();
119 if (input_job.IsValid()) {
120 auto& image_data = input_job.Data();
121
122 if (image_data.status == ImageReader::Status::SUCCESS) {
123 image_data.bitmap->Thumbnail(max_image_size_);
124 }
125
126 output_queue_->Push(std::move(image_data));
127 } else {
128 break;
129 }
130 }
131 }
132
133 const int max_image_size_;
134

Callers

nothing calls this directly

Calls 5

ThumbnailMethod · 0.80
PushMethod · 0.80
PopMethod · 0.45
IsValidMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected