diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-27 23:20:45 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-27 23:20:45 -0500 |
commit | 0b44893b4eb6cf7a2ae48574e78addacd0451c02 (patch) | |
tree | 458042f59a73b11f97425a7bcc980f25fe8ae11e /test/umeyama.cpp | |
parent | 8cad73072ee204964f5d8ee722fc48d207379ef3 (diff) |
fix umeyama test
Diffstat (limited to 'test/umeyama.cpp')
-rw-r--r-- | test/umeyama.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/umeyama.cpp b/test/umeyama.cpp index abbb1fc7f..af1acdf82 100644 --- a/test/umeyama.cpp +++ b/test/umeyama.cpp @@ -130,9 +130,8 @@ void run_test(int dim, int num_elements) MatrixX cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements)); - const Scalar error = ( cR_t_umeyama*src - dst ).array().square().sum(); - - VERIFY(error < Scalar(10)*std::numeric_limits<Scalar>::epsilon()); + const Scalar error = ( cR_t_umeyama*src - dst ).norm() / dst.norm(); + VERIFY(error < Scalar(40)*std::numeric_limits<Scalar>::epsilon()); } template<typename Scalar, int Dimension> |