X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkGenericAffineTransform.cxx;h=27ba91bec0777771ed68a03de309815f951cc69c;hb=HEAD;hp=f1db790c31584a66a474d62d967361a85aa23d1e;hpb=c18059db4f507fd31b5898667f57eced7d48c5f7;p=clitk.git diff --git a/registration/clitkGenericAffineTransform.cxx b/registration/clitkGenericAffineTransform.cxx index f1db790..27ba91b 100644 --- a/registration/clitkGenericAffineTransform.cxx +++ b/registration/clitkGenericAffineTransform.cxx @@ -1,9 +1,9 @@ -/*========================================================================= + /*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #include "clitkGenericAffineTransform.h" #include "clitkAffineRegistration_ggo.h" @@ -29,9 +29,10 @@ template<> itk::MatrixOffsetTransformBase::Pointer clitk::GenericAffineTransform::GetNewEulerTransform() { - itk::Euler2DTransform< double >::Pointer p = itk::Euler2DTransform< double >::New(); + typedef itk::Euler2DTransform< double > Transform2DType; + Transform2DType::Pointer t2 = Transform2DType::New(); itk::MatrixOffsetTransformBase::Pointer pp; - pp = p; + pp = t2; return pp; } @@ -40,9 +41,11 @@ template<> itk::MatrixOffsetTransformBase::Pointer clitk::GenericAffineTransform::GetNewEulerTransform() { - itk::Euler3DTransform< double >::Pointer p = itk::Euler3DTransform< double >::New(); + typedef itk::Euler3DTransform < double > Transform3DType; + Transform3DType::Pointer t3 = Transform3DType::New(); + t3->SetComputeZYX(true); //SR: required? itk::MatrixOffsetTransformBase::Pointer pp; - pp = p; + pp = t3; return pp; } }