From bf3ee4233733a3d877289fe2071cc8d4d4323c3c Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 27 Nov 2012 23:31:09 +0000 Subject: [PATCH] corrected use of point matching --- vcg/complex/algorithms/autoalign_4pcs.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vcg/complex/algorithms/autoalign_4pcs.h b/vcg/complex/algorithms/autoalign_4pcs.h index 7bacda33..313d4204 100644 --- a/vcg/complex/algorithms/autoalign_4pcs.h +++ b/vcg/complex/algorithms/autoalign_4pcs.h @@ -33,10 +33,7 @@ used in the paper pseudocode. #include #include #include -#include -#include -#include - +#include #include #include #include @@ -386,7 +383,7 @@ FourPCS::IsTransfCongruent(FourPoints fp,vcg::Matrix44 & m p = fp[0] + n; fix.push_back(p); - vcg::PointMatching::ComputeRigidMatchMatrix(mat,fix,mov); + vcg::ComputeRigidMatchMatrix(fix,mov,mat); ScalarType err = 0.0; for(int i = 0; i < 4; ++i) err+= (mat * mov[i] - fix[i]).SquaredNorm();