]> Creatis software - clitk.git/blob - registration/clitkMatrixTransformToVFGenericFilter.h
Merge branch 'master' of git.creatis.insa-lyon.fr:clitk
[clitk.git] / registration / clitkMatrixTransformToVFGenericFilter.h
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://www.centreleonberard.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 #ifndef clitkMatrixTransformToVFGenericFilter_h
19 #define clitkMatrixTransformToVFGenericFilter_h
20
21 /* =================================================
22  * @file   clitkMatrixTransformToVFGenericFilter.h
23  * @author 
24  * @date   
25  * 
26  * @brief 
27  * 
28  ===================================================*/
29
30
31 // clitk include
32 #include "clitkIO.h"
33 #include "clitkCommon.h"
34 #include "clitkTransformUtilities.h"
35 #include "clitkMatrixTransformToVF_ggo.h"
36
37 //itk include
38 #include "itkLightObject.h"
39 #if ITK_VERSION_MAJOR >= 4
40 #  if ITK_VERSION_MINOR < 6
41 #    include "itkTransformToDisplacementFieldSource.h"
42 #  else
43 #    include "itkTransformToDisplacementFieldFilter.h"
44 #  endif
45 #endif
46 #include "itkAffineTransform.h"
47
48 namespace clitk 
49 {
50
51
52   class ITK_EXPORT MatrixTransformToVFGenericFilter : public itk::LightObject
53   {
54   public:
55     //----------------------------------------
56     // ITK
57     //----------------------------------------
58     typedef MatrixTransformToVFGenericFilter                   Self;
59     typedef itk::LightObject                   Superclass;
60     typedef itk::SmartPointer<Self>            Pointer;
61     typedef itk::SmartPointer<const Self>      ConstPointer;
62    
63     // Method for creation through the object factory
64     itkNewMacro(Self);  
65
66     // Run-time type information (and related methods)
67     itkTypeMacro( MatrixTransformToVFGenericFilter, LightObject );
68
69
70     //----------------------------------------
71     // Typedefs
72     //----------------------------------------
73
74
75     //----------------------------------------
76     // Set & Get
77     //----------------------------------------    
78     void SetArgsInfo(const args_info_clitkMatrixTransformToVF & a)
79     {
80       m_ArgsInfo=a;
81       m_Verbose=m_ArgsInfo.verbose_flag;
82     }
83     
84     
85     //----------------------------------------  
86     // Update
87     //----------------------------------------  
88     void Update();
89
90   protected:
91
92     //----------------------------------------  
93     // Constructor & Destructor
94     //----------------------------------------  
95     MatrixTransformToVFGenericFilter();
96     ~MatrixTransformToVFGenericFilter() {};
97
98     
99     //----------------------------------------  
100     // Templated members
101     //----------------------------------------  
102     template <unsigned int Dimension>  void UpdateWithDim();
103     //template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
104
105
106     //----------------------------------------  
107     // Data members
108     //----------------------------------------
109     args_info_clitkMatrixTransformToVF m_ArgsInfo;
110     bool m_Verbose;
111
112   };
113
114
115 } // end namespace clitk
116
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "clitkMatrixTransformToVFGenericFilter.txx"
119 #endif
120
121 #endif // #define clitkMatrixTransformToVFGenericFilter_h