X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=tools%2FclitkAffineTransformGenericFilter.txx;h=d3cd19e265a84b411ffd27a0791672502ca1d0d2;hb=5bea196497686f70796822951af654373cba9f97;hp=68532a66ffa950e0eb4d7537e09df67e0cd21ffb;hpb=db358353c7af7e999daac01b0dce3ed72be10a65;p=clitk.git 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;