1 #ifndef clitkExtractPatientGenericFilter_cxx
2 #define clitkExtractPatientGenericFilter_cxx
4 /* =================================================
5 * @file clitkExtractPatientGenericFilter.cxx
11 ===================================================*/
13 #include "clitkExtractPatientGenericFilter.h"
20 //-----------------------------------------------------------
22 //-----------------------------------------------------------
23 ExtractPatientGenericFilter::ExtractPatientGenericFilter()
30 //-----------------------------------------------------------
32 //-----------------------------------------------------------
33 void ExtractPatientGenericFilter::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 or 3 Dimensions!!!"<<std::endl ;
55 #endif //#define clitkExtractPatientGenericFilter_cxx