From: tbaudier Date: Tue, 15 Mar 2016 08:02:34 +0000 (+0100) Subject: Ensure compatibility with ITK < v4.7 X-Git-Tag: v1.4.0~25 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8a0e0dd10014355862eae24edea0debb6e91a11a;p=clitk.git Ensure compatibility with ITK < v4.7 --- 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);