1 #ifndef clitkSetBackgroundGenericFilter_h
2 #define clitkSetBackgroundGenericFilter_h
4 /* =================================================
5 * @file clitkSetBackgroundGenericFilter.h
11 ===================================================*/
16 #include "clitkImageCommon.h"
17 #include "clitkSetBackgroundImageFilter.h"
18 #include "clitkSetBackground_ggo.h"
21 #include "itkLightObject.h"
27 class ITK_EXPORT SetBackgroundGenericFilter : public itk::LightObject
30 //----------------------------------------
32 //----------------------------------------
33 typedef SetBackgroundGenericFilter Self;
34 typedef itk::LightObject Superclass;
35 typedef itk::SmartPointer<Self> Pointer;
36 typedef itk::SmartPointer<const Self> ConstPointer;
38 // Method for creation through the object factory
41 // Run-time type information (and related methods)
42 itkTypeMacro( SetBackgroundGenericFilter, LightObject );
45 //----------------------------------------
47 //----------------------------------------
50 //----------------------------------------
52 //----------------------------------------
53 void SetArgsInfo(const args_info_clitkSetBackground & a)
56 m_Verbose=m_ArgsInfo.verbose_flag;
57 m_InputFileName=m_ArgsInfo.input_arg;
61 //----------------------------------------
63 //----------------------------------------
68 //----------------------------------------
69 // Constructor & Destructor
70 //----------------------------------------
71 SetBackgroundGenericFilter();
72 ~SetBackgroundGenericFilter() {};
75 //----------------------------------------
77 //----------------------------------------
78 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
79 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
82 //----------------------------------------
84 //----------------------------------------
85 args_info_clitkSetBackground m_ArgsInfo;
87 std::string m_InputFileName;
92 } // end namespace clitk
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "clitkSetBackgroundGenericFilter.txx"
98 #endif // #define clitkSetBackgroundGenericFilter_h