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://oncora1.lyon.fnclcc.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 clitkAverageTemporalDimensionGenericFilter_h
19 #define clitkAverageTemporalDimensionGenericFilter_h
21 /* =================================================
22 * @file clitkAverageTemporalDimensionGenericFilter.h
28 ===================================================*/
33 #include "clitkImageCommon.h"
34 #include "clitkAverageTemporalDimension_ggo.h"
37 #include "itkLightObject.h"
42 template<class args_info_type>
43 class ITK_EXPORT AverageTemporalDimensionGenericFilter : public itk::LightObject
46 //----------------------------------------
48 //----------------------------------------
49 typedef AverageTemporalDimensionGenericFilter Self;
50 typedef itk::LightObject Superclass;
51 typedef itk::SmartPointer<Self> Pointer;
52 typedef itk::SmartPointer<const Self> ConstPointer;
54 // Method for creation through the object factory
57 // Run-time type information (and related methods)
58 itkTypeMacro( AverageTemporalDimensionGenericFilter, LightObject );
61 //----------------------------------------
63 //----------------------------------------
66 //----------------------------------------
68 //----------------------------------------
69 void SetArgsInfo(const args_info_type & a)
72 m_Verbose=m_ArgsInfo.verbose_flag;
73 m_InputFileName=m_ArgsInfo.input_arg[0];
77 //----------------------------------------
79 //----------------------------------------
84 //----------------------------------------
85 // Constructor & Destructor
86 //----------------------------------------
87 AverageTemporalDimensionGenericFilter();
88 ~AverageTemporalDimensionGenericFilter() {};
91 //----------------------------------------
93 //----------------------------------------
94 template <unsigned int Dimension> void UpdateWithDim(const std::string PixelType, const int Components);
95 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
98 //----------------------------------------
100 //----------------------------------------
101 args_info_type m_ArgsInfo;
103 std::string m_InputFileName;
108 } // end namespace clitk
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #include "clitkAverageTemporalDimensionGenericFilter.txx"
114 #endif // #define clitkAverageTemporalDimensionGenericFilter_h