Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Bazik committed Oct 4, 2018
1 parent 2586282 commit 9e8075f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/estimate_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def compute_similarity_transform(points_static, points_to_transform):
p1c = p1+t1

covariance_matrix = p0c.dot(p1c.T)
U,S,V = np.linalg.svd(coveriance_matrix)
U,S,V = np.linalg.svd(covariance_matrix)
R = U.dot(V)
if np.linalg.det(R) < 0:
R[:,2] *= -1
Expand All @@ -92,4 +92,4 @@ def estimate_pose(vertices):
_,R,_ = P2sRt(P) # decompose affine matrix to s, R, t
pose = matrix2angle(R)

return P, pose
return P, pose

0 comments on commit 9e8075f

Please sign in to comment.