]> Creatis software - clitk.git/commitdiff
Add a tolerance when calculate euler angle with rigid transformation
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 14:11:43 +0000 (15:11 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 14:11:43 +0000 (15:11 +0100)
vv/vvToolRigidReg.cxx

index d2c889cb31fd8b9b3e8670d911d569f9727a3793..5b022f49385cf1a560f9518168c3030977442579 100644 (file)
@@ -379,7 +379,7 @@ void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix)
   euler = itk::Euler3DTransform<double>::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);