]> Creatis software - clitk.git/blobdiff - registration/clitkGenericAffineTransform.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkGenericAffineTransform.cxx
index f1db790c31584a66a474d62d967361a85aa23d1e..27ba91bec0777771ed68a03de309815f951cc69c 100644 (file)
@@ -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<double, 2, 2>::Pointer
 clitk::GenericAffineTransform<args_info_clitkAffineRegistration, double, 2>::GetNewEulerTransform()
 {
-  itk::Euler2DTransform< double >::Pointer p = itk::Euler2DTransform< double >::New();
+  typedef itk::Euler2DTransform< double > Transform2DType;
+  Transform2DType::Pointer t2 = Transform2DType::New();
   itk::MatrixOffsetTransformBase<double, 2, 2>::Pointer pp;
-  pp = p;
+  pp = t2;
   return pp;
 }
 
@@ -40,9 +41,11 @@ template<>
 itk::MatrixOffsetTransformBase<double, 3, 3>::Pointer
 clitk::GenericAffineTransform<args_info_clitkAffineRegistration, double, 3>::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<double, 3, 3>::Pointer pp;
-  pp = p;
+  pp = t3;
   return pp;
 }
 }