From e33065b087d4dbe97c5528d76b34957ec2c946c7 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 9 Mar 2016 15:11:43 +0100 Subject: [PATCH] Add a tolerance when calculate euler angle with rigid transformation --- vv/vvToolRigidReg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index d2c889c..5b022f4 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -379,7 +379,7 @@ void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix) euler = itk::Euler3DTransform::New(); euler->SetCenter(center); try { - euler->SetMatrix(rotMat); + euler->SetMatrix(rotMat,0.00001); } catch (itk::ExceptionObject) { QString warning = "The matrice is a non-orthogonal rotation matrix.\nThe manual registration doesn't work."; QMessageBox msgBox(QMessageBox::Warning, tr("Reset transform"),warning, 0, this); -- 2.47.1