]> Creatis software - clitk.git/blob - registration/clitkGenericAffineTransform.cxx
Added clitkAffineRegistration from Jef's file. Also does translations only and rigid...
[clitk.git] / registration / clitkGenericAffineTransform.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to:
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18
19 #include "clitkGenericAffineTransform.h"
20 #include "clitkAffineRegistration_ggo.h"
21
22 #include <itkEuler2DTransform.h>
23 #include <itkEuler3DTransform.h>
24
25 namespace clitk
26 {
27 //=========================================================================================================================
28 template<>
29 itk::MatrixOffsetTransformBase<double, 2, 2>::Pointer
30 clitk::GenericAffineTransform<args_info_clitkAffineRegistration, double, 2>::GetNewEulerTransform()
31 {
32   itk::Euler2DTransform< double >::Pointer p = itk::Euler2DTransform< double >::New();
33   itk::MatrixOffsetTransformBase<double, 2, 2>::Pointer pp;
34   pp = p;
35   return pp;
36 }
37
38 //=========================================================================================================================
39 template<>
40 itk::MatrixOffsetTransformBase<double, 3, 3>::Pointer
41 clitk::GenericAffineTransform<args_info_clitkAffineRegistration, double, 3>::GetNewEulerTransform()
42 {
43   itk::Euler3DTransform< double >::Pointer p = itk::Euler3DTransform< double >::New();
44   itk::MatrixOffsetTransformBase<double, 3, 3>::Pointer pp;
45   pp = p;
46   return pp;
47 }
48 }