#ifndef CLITKIMAGECONVERTGENERICFILTER_H #define CLITKIMAGECONVERTGENERICFILTER_H /** =================================================================== * @file clitkImageConvertGenericFilter.h * @author David Sarrut * @date 05 May 2008 10:40:24 * @brief ===================================================================*/ // clitk include #include "clitkImageToImageGenericFilter.h" // itk include #include "itkCastImageFilter.h" namespace clitk { class ImageConvertGenericFilter: public clitk::ImageToImageGenericFilter { public: // constructor - destructor ImageConvertGenericFilter(); // Types typedef ImageConvertGenericFilter Self; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; // New itkNewMacro(Self); // Members functions void SetOutputPixelType(std::string p) { mOutputPixelTypeName = p; } //-------------------------------------------------------------------- // Main function called each time the filter is updated template void UpdateWithInputImageType(); protected: template void InitializeImageType(); std::string mOutputPixelTypeName; template void UpdateWithOutputType(); }; // end class ImageConvertGenericFilter //#include "clitkImageConvertGenericFilter.txx" } // end namespace #endif /* end #define CLITKIMAGECONVERTGENERICFILTER_H */