Skip to content

Commit c160177

Browse files
committed
use ref_id
1 parent 0ba64af commit c160177

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/map_closures/MapClosures.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ std::vector<ClosureCandidate> MapClosures::GetTopKClosures(
172172
[&](const auto &descriptor_match) {
173173
const auto ref_id = static_cast<int>(descriptor_match.first);
174174
if (is_far_enough(ref_id, query_id)) {
175-
ClosureCandidate closure =
176-
ValidateClosure(descriptor_match.first, query_id);
175+
ClosureCandidate closure = ValidateClosure(ref_id, query_id);
177176
if (closure.number_of_inliers > min_no_of_matches) {
178177
closures.emplace_back(closure);
179178
}

0 commit comments

Comments
 (0)