From 8a0e0dd10014355862eae24edea0debb6e91a11a Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 15 Mar 2016 09:02:34 +0100 Subject: [PATCH] Ensure compatibility with ITK < v4.7 --- vv/vvToolRigidReg.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index 5b022f4..8c2909e 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -379,7 +379,11 @@ void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix) euler = itk::Euler3DTransform::New(); euler->SetCenter(center); try { +#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR > 6) euler->SetMatrix(rotMat,0.00001); +#else + euler->SetMatrix(rotMat); +#endif } 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