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:
Colombo 2019-10-24 21:46:54 +04:00
parent 59d6fada23
commit 0448a461f5

View file

@ -57,7 +57,7 @@ def umeyama(src, dst, estimate_scale):
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
d[dim - 1] = s
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:
# Eq. (41) and (42).