From: tbaudier Date: Wed, 9 Mar 2016 14:11:43 +0000 (+0100) Subject: Add a tolerance when calculate euler angle with rigid transformation X-Git-Tag: v1.4.0~32 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e33065b087d4dbe97c5528d76b34957ec2c946c7;p=clitk.git Add a tolerance when calculate euler angle with rigid transformation --- 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);