Skip to content

Commit

Permalink
Merge pull request #27 from originlake/two_view_plane_fix
Browse files Browse the repository at this point in the history
fix a bug in two view plane based reconstruction
  • Loading branch information
pierotofy authored Oct 18, 2023
2 parents 729339d + 04f1d8c commit 9e7e6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensfm/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def two_view_reconstruction_plane_based(
inliers = _two_view_reconstruction_inliers(b1, b2, R.T, -R.T.dot(t), threshold)
motion_inliers.append(inliers)

best = np.argmax(map(len, motion_inliers))
best = np.argmax(list(map(len, motion_inliers)))
R, t, n, d = motions[best]
inliers = motion_inliers[best]
return cv2.Rodrigues(R)[0].ravel(), t, inliers
Expand Down

0 comments on commit 9e7e6a2

Please sign in to comment.