Fix infinite loop in RANSAC

This commit is contained in:
Simon Giraudot 2018-02-01 10:49:30 +01:00
parent ff109bfb0e
commit 2b6e30f95d
1 changed files with 3 additions and 0 deletions

View File

@ -734,6 +734,9 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}.
candidates.resize(end);
}
else if (!keep_searching)
++ generated_candidates;
keep_searching = (stop_probability(m_options.min_points,
m_num_available_points - num_invalid,
generated_candidates,