From dc2e20ab3204d5782db1c0750a7a4b5882d3db89 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Tue, 4 Jun 2013 13:37:49 +0200 Subject: [PATCH] itk3 compatibility --- tools/clitkAffineTransformGenericFilter.txx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/clitkAffineTransformGenericFilter.txx b/tools/clitkAffineTransformGenericFilter.txx index 68532a6..d3cd19e 100644 --- a/tools/clitkAffineTransformGenericFilter.txx +++ b/tools/clitkAffineTransformGenericFilter.txx @@ -497,7 +497,7 @@ namespace clitk template template typename itk::Matrix - AffineTransformGenericFilter::createMatrixFromElastixFile(std::vector & filename) + AffineTransformGenericFilter::createMatrixFromElastixFile(std::vector & filename) { if (Dimension != 3) { FATAL("Only 3D yet" << std::endl); @@ -566,9 +566,11 @@ namespace clitk std::cout << "Composed rotation (deg) : " << rad2deg(mat->GetAngleX()) << " " << rad2deg(mat->GetAngleY()) << " " << rad2deg(mat->GetAngleZ()) << std::endl; std::cout << "Composed center of rot (phy) : " << mat->GetCenter() << std::endl; std::cout << "Compsoed translation (phy) : " << mat->GetTranslation() << std::endl; + } } - } - previous = mat->Clone(); + // previous = mat->Clone(); // ITK4 + previous = itk::CenteredEuler3DTransform::New(); + previous->SetParameters(mat->GetParameters()); } mat = previous; -- 2.47.1