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 clitkInvertVFGenericFilter_h
19 #define clitkInvertVFGenericFilter_h
21 /* =================================================
22 * @file clitkInvertVFGenericFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
34 #include "clitkInvertVF_ggo.h"
35 #include "clitkInvertVFFilter.h"
38 #include "itkLightObject.h"
39 #if ITK_VERSION_MAJOR >= 4
40 #include "itkInverseDisplacementFieldImageFilter.h"
42 #include "itkInverseDeformationFieldImageFilter.h"
48 template<class args_info_type>
49 class ITK_EXPORT InvertVFGenericFilter : public itk::LightObject
52 //----------------------------------------
54 //----------------------------------------
55 typedef InvertVFGenericFilter Self;
56 typedef itk::LightObject Superclass;
57 typedef itk::SmartPointer<Self> Pointer;
58 typedef itk::SmartPointer<const Self> ConstPointer;
60 // Method for creation through the object factory
63 // Run-time type information (and related methods)
64 itkTypeMacro( InvertVFGenericFilter, LightObject );
67 //----------------------------------------
69 //----------------------------------------
72 //----------------------------------------
74 //----------------------------------------
75 void SetArgsInfo(const args_info_type & a)
78 m_Verbose=m_ArgsInfo.verbose_flag;
79 m_InputFileName=m_ArgsInfo.input_arg;
83 //----------------------------------------
85 //----------------------------------------
90 //----------------------------------------
91 // Constructor & Destructor
92 //----------------------------------------
93 InvertVFGenericFilter();
94 ~InvertVFGenericFilter() {};
97 //----------------------------------------
99 //----------------------------------------
100 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
101 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
104 //----------------------------------------
106 //----------------------------------------
107 args_info_type m_ArgsInfo;
109 std::string m_InputFileName;
114 } // end namespace clitk
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "clitkInvertVFGenericFilter.txx"
120 #endif // #define clitkInvertVFGenericFilter_h