1 /*=========================================================================
4 Module: $RCSfile: clitkImageToImageGenericFilter.h,v $
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>
12 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
13 CREATIS-LRMN http://www.creatis.insa-lyon.fr
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.
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.
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/>.
27 =========================================================================*/
29 #ifndef CLITKIMAGETOIMAGEGENERICFILTER_H
30 #define CLITKIMAGETOIMAGEGENERICFILTER_H
33 #include "clitkImageToImageGenericFilterBase.h"
37 //--------------------------------------------------------------------
38 template<class FilterType>
39 class ImageToImageGenericFilter: public ImageToImageGenericFilterBase {
43 typedef ImageToImageGenericFilter<FilterType> Self;
45 // constructor - destructor
46 ImageToImageGenericFilter(std::string filterName);
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();
55 // Object that will manage the list of templatized function for
57 ImageTypesManager<FilterType> mImageTypesManager;
59 }; // end class clitk::ImageToImageGenericFilter
61 #include "clitkImageToImageGenericFilter.txx"
65 #endif /* end #define CLITKIMAGETOIMAGEGENERICFILTER_H */