Skip to content

Commit

Permalink
address Ayush comments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwlambert committed Jan 25, 2022
1 parent f4e3dd7 commit b3e3e78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gtsfm/data_association/point3d_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ def __check_ransac_params(self) -> None:
assert 0 <= self.min_num_hypotheses < self.max_num_hypotheses

def num_ransac_hypotheses(self) -> int:
"""Compute maximum number of hypotheses."""
"""Compute maximum number of hypotheses.
The RANSAC module defaults to 2749 iterations, computed as:
np.log(1-0.9999) / np.log( 1 - 0.1 **2) * 3 = 2749.3
"""
self.__check_ransac_params()
dyn_num_hypotheses = int(
(np.log(1 - self.confidence) / np.log(1 - self.min_inlier_ratio ** NUM_SAMPLES_PER_RANSAC_HYPOTHESIS))
Expand Down

0 comments on commit b3e3e78

Please sign in to comment.