| 440 | } |
| 441 | |
| 442 | void DatabaseCache::AddImage(class Image image) { |
| 443 | const image_t image_id = image.ImageId(); |
| 444 | THROW_CHECK(!ExistsImage(image_id)); |
| 445 | correspondence_graph_->AddImage(image_id, image.NumPoints2D()); |
| 446 | images_.emplace(image_id, std::move(image)); |
| 447 | } |
| 448 | |
| 449 | void DatabaseCache::AddPosePrior(struct PosePrior pose_prior) { |
| 450 | pose_priors_.push_back(std::move(pose_prior)); |
no test coverage detected