]> Creatis software - clitk.git/blob - registration/clitkConvertBSplineDeformableTransformToVFGenericFilter.h
Merge branch 'master' of /home/romulo/creatis/clitk3-git-shared/clitk3
[clitk.git] / registration / clitkConvertBSplineDeformableTransformToVFGenericFilter.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 clitkConvertBSplineDeformableTransformToVFGenericFilter_h
19 #define clitkConvertBSplineDeformableTransformToVFGenericFilter_h
20
21 /* =================================================
22  * @file   clitkConvertBSplineDeformableTransformToVFGenericFilter.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 "clitkImageCommon.h"
35 #include "clitkConvertBSplineDeformableTransformToVF_ggo.h"
36 #include "clitkBSplineDeformableTransform.h"
37 #include "clitkShapedBLUTSpatioTemporalDeformableTransform.h"
38 #include "clitkTransformToDeformationFieldSource.h"
39
40 //itk include
41 #include "itkLightObject.h"
42 #include "itkImageMaskSpatialObject.h"
43 #include "itkTransformToDeformationFieldSource.h"
44
45
46 namespace clitk 
47 {
48
49   class ITK_EXPORT ConvertBSplineDeformableTransformToVFGenericFilter : public itk::LightObject
50   {
51   public:
52     //----------------------------------------
53     // ITK
54     //----------------------------------------
55     typedef ConvertBSplineDeformableTransformToVFGenericFilter                   Self;
56     typedef itk::LightObject                   Superclass;
57     typedef itk::SmartPointer<Self>            Pointer;
58     typedef itk::SmartPointer<const Self>      ConstPointer;
59    
60     // Method for creation through the object factory
61     itkNewMacro(Self);  
62
63     // Run-time type information (and related methods)
64     itkTypeMacro( ConvertBSplineDeformableTransformToVFGenericFilter, LightObject );
65
66
67     //----------------------------------------
68     // Typedefs
69     //----------------------------------------
70
71
72     //----------------------------------------
73     // Set & Get
74     //----------------------------------------    
75     void SetArgsInfo(const args_info_clitkConvertBSplineDeformableTransformToVF & a)
76     {
77       m_ArgsInfo=a;
78       m_Verbose=m_ArgsInfo.verbose_flag;
79       m_InputFileName=m_ArgsInfo.input_arg;
80     }
81     
82     
83     //----------------------------------------  
84     // Update
85     //----------------------------------------  
86     void Update();
87
88   protected:
89
90     //----------------------------------------  
91     // Constructor & Destructor
92     //----------------------------------------  
93     ConvertBSplineDeformableTransformToVFGenericFilter();
94     ~ConvertBSplineDeformableTransformToVFGenericFilter() {};
95
96     
97     //----------------------------------------  
98     // Templated members
99     //----------------------------------------  
100     template <unsigned int Dimension>  void UpdateWithDim(std::string PixelType, int Components);
101     // template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
102
103
104     //----------------------------------------  
105     // Data members
106     //----------------------------------------
107     args_info_clitkConvertBSplineDeformableTransformToVF m_ArgsInfo;
108     bool m_Verbose;
109     std::string m_InputFileName;
110
111   };
112
113
114 } // end namespace clitk
115
116
117 #endif // #define clitkConvertBSplineDeformableTransformToVFGenericFilter_h