1 #ifndef CLITKIMAGECONVERTGENERICFILTER_H
2 #define CLITKIMAGECONVERTGENERICFILTER_H
4 ===================================================================
5 * @file clitkImageConvertGenericFilter.h
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7 * @date 05 May 2008 10:40:24
11 ===================================================================*/
14 #include "clitkImageToImageGenericFilter.h"
17 #include "itkCastImageFilter.h"
21 class ImageConvertGenericFilter:
22 public clitk::ImageToImageGenericFilter<ImageConvertGenericFilter> {
25 // constructor - destructor
26 ImageConvertGenericFilter();
29 typedef ImageConvertGenericFilter Self;
30 typedef itk::SmartPointer<Self> Pointer;
31 typedef itk::SmartPointer<const Self> ConstPointer;
37 void SetOutputPixelType(std::string p) { mOutputPixelTypeName = p; }
39 //--------------------------------------------------------------------
40 // Main function called each time the filter is updated
41 template<class InputImageType>
42 void UpdateWithInputImageType();
45 template<unsigned int Dim> void InitializeImageType();
46 std::string mOutputPixelTypeName;
48 template<class InputImageType, class OutputPixelType> void UpdateWithOutputType();
50 }; // end class ImageConvertGenericFilter
52 //#include "clitkImageConvertGenericFilter.txx"
56 #endif /* end #define CLITKIMAGECONVERTGENERICFILTER_H */