tsattler / RansacLib

Template-based implementation of RANSAC and its variants in C++
BSD 3-Clause "New" or "Revised" License
356 stars 48 forks source link

Avoid division by zero #6

Closed mgprt closed 4 years ago

mgprt commented 4 years ago

This happens if there are no constraints of a certain type. The resulting NaN in the inlier ratios confuses the solver selection in the next iteration.

tsattler commented 4 years ago

lgtm