8000 search src images for patch_match from all set, not only referenced subset by DaniilSNikulin · Pull Request #1038 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

search src images for patch_match from all set, not only referenced subset #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/mvs/patch_match.cc
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ void PatchMatchController::ReadProblems() {
// Use all images as source images.
problem.src_image_idxs.clear();
problem.src_image_idxs.reserve(model.images.size() - 1);
for (const int image_idx : ref_image_idxs) {
if (image_idx != problem.ref_image_idx) {
for (size_t image_idx = 0; image_idx < model.images.size(); ++image_idx) {
if (static_cast<int>(image_idx) != problem.ref_image_idx) {
problem.src_image_idxs.push_back(image_idx);
}
}
Expand Down Expand Up @@ -346,8 +346,7 @@ void PatchMatchController::ReadProblems() {
std::vector<std::pair<int, int>> src_images;
src_images.reserve(overlapping_images.size());
for (const auto& image : overlapping_images) {
if (ref_image_idxs.count(image.first) &&
overlapping_triangulation_angles.at(image.first) >=
if (overlapping_triangulation_angles.at(image.first) >=
min_triangulation_angle_rad) {
src_images.emplace_back(image.first, image.second);
}
Expand Down
0