Skip to content

Commit

Permalink
Merge pull request #90 from STORM-IRIT/fix89
Browse files Browse the repository at this point in the history
Tentative Fix #89
  • Loading branch information
nmellado authored Mar 2, 2021
2 parents 23cad44 + 4f2730a commit 5ec7147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gr/algorithms/congruentSetExplorationBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ bool CongruentSetExplorationBase<Traits, PointType, TransformVisitor, PairFilter
std::atomic<size_t> nbCongruentAto(0);

Coordinates congruent_candidate;
bool found = false;
#ifdef OpenGR_USE_OPENMP
#pragma omp parallel for num_threads(omp_nthread_congruent_)
#endif
for (int i = 0; i < int(set.size()); ++i) {
if (found) continue;
const auto& congruent_ids = set[i];
for (int j = 0; j!= Traits::size(); ++j)
congruent_candidate[j] = &MatchBaseType::sampled_Q_3D_[congruent_ids[j]];
Expand Down Expand Up @@ -348,7 +350,7 @@ bool CongruentSetExplorationBase<Traits, PointType, TransformVisitor, PairFilter
}
// Terminate if we have the desired LCP already.
if (lcp > MatchBaseType::options_.getTerminateThreshold()){
continue;
found = true;
}
}
} else {
Expand Down

0 comments on commit 5ec7147

Please sign in to comment.