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