]> Creatis software - clitk.git/blob - common/clitkImageToImageGenericFilter.h
Precise the unite of the bounding box for clitkCropImageFilter
[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
19 #ifndef CLITKIMAGETOIMAGEGENERICFILTER_H
20 #define CLITKIMAGETOIMAGEGENERICFILTER_H
21
22 #include "clitkImageToImageGenericFilterBase.h"
23
24 namespace clitk {
25   
26 //--------------------------------------------------------------------
27   template<class FilterType>
28   class ImageToImageGenericFilter: public ImageToImageGenericFilterBase {
29     
30   public: 
31     
32     typedef ImageToImageGenericFilter<FilterType> Self;
33
34     // constructor - destructor
35     ImageToImageGenericFilter(std::string filterName);
36
37     // Main function to call for using the filter. 
38     virtual bool Update();
39     virtual bool CheckImageType(unsigned int dim,unsigned int ncomp, std::string pixeltype);
40     virtual bool CheckImageType();
41     virtual std::string GetAvailableImageTypes();
42
43   protected:
44     // Object that will manage the list of templatized function for
45     // each image type.
46     ImageTypesManager<FilterType> mImageTypesManager;
47     
48   }; // end class clitk::ImageToImageGenericFilter
49
50 #include "clitkImageToImageGenericFilter.txx"  
51
52 } // end namespace
53
54 #endif /* end #define CLITKIMAGETOIMAGEGENERICFILTER_H */
55