Skip to content

Commit

Permalink
Merge pull request #61 from SciKit-Surgery/58-ransac-recursion
Browse files Browse the repository at this point in the history
58 ransac recursion
  • Loading branch information
thompson318 authored Oct 12, 2023
2 parents a0640af + e25da42 commit eb87bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sksurgerycalibration/algorithms/pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def pivot_calibration_with_ransac(tracking_matrices,
sample = tracking_matrices[indexes]

try:
pointer_offset, pivot_location, _ = pivot_calibration(sample)
pointer_offset, pivot_location, _ = pivot_calibration_aos(sample)
except ValueError:
print("RANSAC, iteration " + str(iter_counter) + ", failed.")
continue
Expand All @@ -180,7 +180,7 @@ def pivot_calibration_with_ransac(tracking_matrices,
highest_number_of_inliers = number_of_inliers
inlier_matrices = tracking_matrices[inlier_indices]
best_pointer_offset, best_pivot_location, best_residual_error = \
pivot_calibration(inlier_matrices)
pivot_calibration_aos(inlier_matrices)

# Early exit condition, as soon as we find model with enough fit.
if percentage_inliers > concensus_threshold and early_exit:
Expand Down

0 comments on commit eb87bfa

Please sign in to comment.