From 0448a461f5fdf50e4ae02951517363531949cf4f Mon Sep 17 00:00:00 2001 From: Colombo Date: Thu, 24 Oct 2019 21:46:54 +0400 Subject: [PATCH] fix umeyama for landmark alignment of side faces Before https://i.imgur.com/pEoZ6Mu.mp4 after https://i.imgur.com/wO2Guo7.mp4 --- mathlib/umeyama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathlib/umeyama.py b/mathlib/umeyama.py index 7c6b2d0..826a88f 100644 --- a/mathlib/umeyama.py +++ b/mathlib/umeyama.py @@ -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).