fix umeyama for landmark alignment of side faces
Before https://i.imgur.com/pEoZ6Mu.mp4 after https://i.imgur.com/wO2Guo7.mp4
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ def umeyama(src, dst, estimate_scale):
|
|||||||
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
||||||
d[dim - 1] = s
|
d[dim - 1] = s
|
||||||
else:
|
else:
|
||||||
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V.T))
|
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
||||||
|
|
||||||
if estimate_scale:
|
if estimate_scale:
|
||||||
# Eq. (41) and (42).
|
# Eq. (41) and (42).
|
||||||
|
|||||||
Reference in New Issue
Block a user