1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef CLITKIMAGECONVERTGENERICFILTER_H
19 #define CLITKIMAGECONVERTGENERICFILTER_H
21 ===================================================================
22 * @file clitkImageConvertGenericFilter.h
23 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
24 * @date 05 May 2008 10:40:24
28 ===================================================================*/
31 #include "clitkImageToImageGenericFilter.h"
34 #include "itkCastImageFilter.h"
38 class ImageConvertGenericFilter:
39 public clitk::ImageToImageGenericFilter<ImageConvertGenericFilter> {
42 // constructor - destructor
43 ImageConvertGenericFilter();
46 typedef ImageConvertGenericFilter Self;
47 typedef itk::SmartPointer<Self> Pointer;
48 typedef itk::SmartPointer<const Self> ConstPointer;
54 void SetOutputPixelType(std::string p) { mOutputPixelTypeName = p; }
55 bool IsWarningOccur() { return mWarningOccur; }
56 std::string & GetWarning() { return mWarning; }
57 void EnableDisplayWarning(bool b) { mDisplayWarning = b; }
59 //--------------------------------------------------------------------
60 // Main function called each time the filter is updated
61 template<class InputImageType>
62 void UpdateWithInputImageType();
65 template<unsigned int Dim> void InitializeImageType();
66 std::string mOutputPixelTypeName;
71 template<class InputImageType, class OutputPixelType> void UpdateWithOutputType();
73 }; // end class ImageConvertGenericFilter
75 //#include "clitkImageConvertGenericFilter.txx"
79 #endif /* end #define CLITKIMAGECONVERTGENERICFILTER_H */