1 #ifndef clitkSetBackgroundGenericFilter_cxx
2 #define clitkSetBackgroundGenericFilter_cxx
4 /* =================================================
5 * @file clitkSetBackgroundGenericFilter.cxx
11 ===================================================*/
13 #include "clitkSetBackgroundGenericFilter.h"
20 //-----------------------------------------------------------
22 //-----------------------------------------------------------
23 SetBackgroundGenericFilter::SetBackgroundGenericFilter()
30 //-----------------------------------------------------------
32 //-----------------------------------------------------------
33 void SetBackgroundGenericFilter::Update()
35 // Read the Dimension and PixelType
37 std::string PixelType;
38 ReadImageDimensionAndPixelType(m_InputFileName, Dimension, PixelType);
42 if(Dimension==2) UpdateWithDim<2>(PixelType);
43 else if(Dimension==3) UpdateWithDim<3>(PixelType);
44 else if (Dimension==4)UpdateWithDim<4>(PixelType);
47 std::cout<<"Error, Only for 2 , 3 or 4 Dimensions!!!"<<std::endl ;
55 #endif //#define clitkSetBackgroundGenericFilter_cxx