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 clitkBSplineCoefficientsToValuesGenericFilter_h
19 #define clitkBSplineCoefficientsToValuesGenericFilter_h
21 /* =================================================
22 * @file clitkBSplineCoefficientsToValuesGenericFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
34 #include "clitkBSplineCoefficientsToValues_ggo.h"
35 #include "clitkTransformUtilities.h"
38 #include "itkLightObject.h"
39 #include "itkResampleImageFilter.h"
40 #include "itkVectorResampleImageFilter.h"
41 #include "itkBSplineResampleImageFunction.h"
42 #include "clitkVectorBSplineResampleImageFunction.h"
43 #include "itkAddImageFilter.h"
44 #if ITK_VERSION_MAJOR >= 4
45 #include "itkTransformToDisplacementFieldSource.h"
47 #include "itkTransformToDeformationFieldSource.h"
54 class ITK_EXPORT BSplineCoefficientsToValuesGenericFilter : public itk::LightObject
57 //----------------------------------------
59 //----------------------------------------
60 typedef BSplineCoefficientsToValuesGenericFilter Self;
61 typedef itk::LightObject Superclass;
62 typedef itk::SmartPointer<Self> Pointer;
63 typedef itk::SmartPointer<const Self> ConstPointer;
65 // Method for creation through the object factory
68 // Run-time type information (and related methods)
69 itkTypeMacro( BSplineCoefficientsToValuesGenericFilter, LightObject );
72 //----------------------------------------
74 //----------------------------------------
77 //----------------------------------------
79 //----------------------------------------
80 void SetArgsInfo(const args_info_clitkBSplineCoefficientsToValues & a)
83 m_Verbose=m_ArgsInfo.verbose_flag;
84 m_InputFileName=m_ArgsInfo.input_arg;
88 //----------------------------------------
90 //----------------------------------------
95 //----------------------------------------
96 // Constructor & Destructor
97 //----------------------------------------
98 BSplineCoefficientsToValuesGenericFilter();
99 ~BSplineCoefficientsToValuesGenericFilter() {};
102 //----------------------------------------
104 //----------------------------------------
105 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType, unsigned int Components);
106 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
107 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndVectorType();
109 //----------------------------------------
111 //----------------------------------------
112 args_info_clitkBSplineCoefficientsToValues m_ArgsInfo;
114 std::string m_InputFileName;
119 } // end namespace clitk
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "clitkBSplineCoefficientsToValuesGenericFilter.txx"
125 #endif // #define clitkBSplineCoefficientsToValuesGenericFilter_h