Find best orthogonal transformation matrix

80 Views Asked by At

I have a matrices $A_{K \times M}$ and $B_{K \times N}$ I am looking for an orthogonal matrix $T_{M \times N}$ such that minimize:

$\mathrm{arg\,min}_{T} ||A T - B||$

(on other words: the best orthogonal transformation from A to B).

I found this https://en.wikipedia.org/wiki/Orthogonal_Procrustes_problem#Generalized/constrained_Procrustes_problems algorithm to find best orthogonal transformation, but it only applies to matrices of the same size.

how can I find this T?