mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
committed by
Antonio Sanchez
parent
af3ca50f0b
commit
9b3d104c02
@@ -136,9 +136,10 @@ umeyama(const MatrixBase<Derived>& src, const MatrixBase<OtherDerived>& dst, boo
|
||||
// Eq. (39)
|
||||
VectorType S = VectorType::Ones(m);
|
||||
|
||||
if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 )
|
||||
if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 ) {
|
||||
Index tmp = m - 1;
|
||||
S(tmp) = -1;
|
||||
}
|
||||
|
||||
// Eq. (40) and (43)
|
||||
Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd.matrixV().transpose();
|
||||
|
||||
Reference in New Issue
Block a user