1 #ifndef CLITKIMAGECONVERTGENERICFILTER_H
2 #define CLITKIMAGECONVERTGENERICFILTER_H
5 ===================================================================
6 * @file clitkImageConvertGenericFilter.h
7 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
8 * @date 05 May 2008 10:40:24
12 ===================================================================*/
15 #include "clitkImageToImageGenericFilter.h"
18 #include "itkCastImageFilter.h"
22 class ImageConvertGenericFilter:
23 public clitk::ImageToImageGenericFilter<ImageConvertGenericFilter> {
26 // constructor - destructor
27 ImageConvertGenericFilter();
30 typedef ImageConvertGenericFilter Self;
31 typedef itk::SmartPointer<Self> Pointer;
32 typedef itk::SmartPointer<const Self> ConstPointer;
38 void SetOutputPixelType(std::string p) { mOutputPixelTypeName = p; }
40 //--------------------------------------------------------------------
41 // Main function called each time the filter is updated
42 template<class InputImageType>
43 void UpdateWithInputImageType();
46 template<unsigned int Dim> void InitializeImageType();
47 std::string mOutputPixelTypeName;
49 template<class InputImageType, class OutputPixelType> void UpdateWithOutputType();
51 }; // end class ImageConvertGenericFilter
53 //#include "clitkImageConvertGenericFilter.txx"
57 #endif /* end #define CLITKIMAGECONVERTGENERICFILTER_H */