Skip to content

Commit

Permalink
Fixed homography RANSAC filtering in matching demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rpautrat committed Jan 6, 2023
1 parent b73aa8a commit 1742343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superpoint/match_features_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def compute_homography(matched_kp1, matched_kp2):
matched_pts2 = cv2.KeyPoint_convert(matched_kp2)

# Estimate the homography between the matches using RANSAC
H, inliers = cv2.findHomography(matched_pts1[:, [1, 0]],
matched_pts2[:, [1, 0]],
H, inliers = cv2.findHomography(matched_pts1,
matched_pts2,
cv2.RANSAC)
inliers = inliers.flatten()
return H, inliers
Expand Down

0 comments on commit 1742343

Please sign in to comment.