]> Creatis software - clitk.git/blob - common/clitkImageToImageGenericFilter.h
- essai pour compiler plus vite
[clitk.git] / common / clitkImageToImageGenericFilter.h
1 /*=========================================================================
2
3   Program:   clitk
4   Module:    $RCSfile: clitkImageToImageGenericFilter.h,v $
5   Language:  C++
6   Date:      $Date: 2010/03/02 12:20:50 $
7   Version:   $Revision: 1.8 $
8   Author :   Joel Schaerer <joel.schaerer@creatis.insa-lyon.fr>
9              David Sarrut <david.sarrut@creatis.insa-lyon.fr>
10
11   Copyright (C) 2008
12   Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
13   CREATIS-LRMN http://www.creatis.insa-lyon.fr
14
15   This program is free software: you can redistribute it and/or modify
16   it under the terms of the GNU General Public License as published by
17   the Free Software Foundation, version 3 of the License.
18
19   This program is distributed in the hope that it will be useful,
20   but WITHOUT ANY WARRANTY; without even the implied warranty of
21   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22   GNU General Public License for more details.
23
24   You should have received a copy of the GNU General Public License
25   along with this program.  If not, see <http://www.gnu.org/licenses/>.
26
27   =========================================================================*/
28
29 #ifndef CLITKIMAGETOIMAGEGENERICFILTER_H
30 #define CLITKIMAGETOIMAGEGENERICFILTER_H
31
32 // clitk include
33 #include "clitkImageToImageGenericFilterBase.h"
34
35 namespace clitk {
36   
37 //--------------------------------------------------------------------
38   template<class FilterType>
39   class ImageToImageGenericFilter: public ImageToImageGenericFilterBase {
40     
41   public: 
42     
43     typedef ImageToImageGenericFilter<FilterType> Self;
44
45     // constructor - destructor
46     ImageToImageGenericFilter(std::string filterName);
47
48     // Main function to call for using the filter. 
49     virtual bool Update();
50     virtual bool CheckImageType(unsigned int dim,unsigned int ncomp, std::string pixeltype);
51     virtual bool CheckImageType();
52     virtual std::string GetAvailableImageTypes();
53
54   protected:
55     // Object that will manage the list of templatized function for
56     // each image type.
57     ImageTypesManager<FilterType> mImageTypesManager;
58     
59   }; // end class clitk::ImageToImageGenericFilter
60
61 #include "clitkImageToImageGenericFilter.txx"  
62
63 } // end namespace
64
65 #endif /* end #define CLITKIMAGETOIMAGEGENERICFILTER_H */
66