1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
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
21 /* =================================================
22 * @file clitkJacobianImageGenericFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
34 #include "clitkJacobianImage_ggo.h"
37 #include "itkLightObject.h"
38 #if ITK_VERSION_MAJOR >= 4
39 #include "itkInverseDisplacementFieldImageFilter.h"
41 #include "itkInverseDeformationFieldImageFilter.h"
47 template<class args_info_type>
48 class ITK_EXPORT JacobianImageGenericFilter : public itk::LightObject
51 //----------------------------------------
53 //----------------------------------------
54 typedef JacobianImageGenericFilter Self;
55 typedef itk::LightObject Superclass;
56 typedef itk::SmartPointer<Self> Pointer;
57 typedef itk::SmartPointer<const Self> ConstPointer;
59 // Method for creation through the object factory
62 // Run-time type information (and related methods)
63 itkTypeMacro( JacobianImageGenericFilter, LightObject );
66 //----------------------------------------
68 //----------------------------------------
71 //----------------------------------------
73 //----------------------------------------
74 void SetArgsInfo(const args_info_type & a)
77 m_Verbose=m_ArgsInfo.verbose_flag;
78 m_InputFileName=m_ArgsInfo.input_arg;
82 //----------------------------------------
84 //----------------------------------------
89 //----------------------------------------
90 // Constructor & Destructor
91 //----------------------------------------
92 JacobianImageGenericFilter();
93 ~JacobianImageGenericFilter() {};
96 //----------------------------------------
98 //----------------------------------------
99 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
100 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
103 //----------------------------------------
105 //----------------------------------------
106 args_info_type m_ArgsInfo;
108 std::string m_InputFileName;
113 } // end namespace clitk
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "clitkJacobianImageGenericFilter.txx"
119 #endif // #define clitkJacobianImageGenericFilter_h