]> Creatis software - clitk.git/blob - common/clitkImageToImageGenericFilter.h
changes in license header
[clitk.git] / common / clitkImageToImageGenericFilter.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef CLITKIMAGETOIMAGEGENERICFILTER_H
19 #define CLITKIMAGETOIMAGEGENERICFILTER_H
20 #include "clitkImageToImageGenericFilterBase.h"
21
22 namespace clitk {
23   
24 //--------------------------------------------------------------------
25   template<class FilterType>
26   class ImageToImageGenericFilter: public ImageToImageGenericFilterBase {
27     
28   public: 
29     
30     typedef ImageToImageGenericFilter<FilterType> Self;
31
32     // constructor - destructor
33     ImageToImageGenericFilter(std::string filterName);
34
35     // Main function to call for using the filter. 
36     virtual bool Update();
37     virtual bool CheckImageType(unsigned int dim,unsigned int ncomp, std::string pixeltype);
38     virtual bool CheckImageType();
39     virtual std::string GetAvailableImageTypes();
40
41   protected:
42     // Object that will manage the list of templatized function for
43     // each image type.
44     ImageTypesManager<FilterType> mImageTypesManager;
45     
46   }; // end class clitk::ImageToImageGenericFilter
47
48 #include "clitkImageToImageGenericFilter.txx"  
49
50 } // end namespace
51
52 #endif /* end #define CLITKIMAGETOIMAGEGENERICFILTER_H */
53