]> Creatis software - clitk.git/blob - tools/clitkResampleImageGenericFilter.h
d598dcf250abd6fbb5080ccdbf7a1bde88d8463b
[clitk.git] / tools / clitkResampleImageGenericFilter.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 CLITKIRESAMPLEIMAGEGENERICFILTER_H
20 #define CLITKIRESAMPLEIMAGEGENERICFILTER_H
21
22 // clitk include
23 #include "clitkResampleImage_ggo.h"
24 #include "clitkImageToImageGenericFilter.h"
25
26 namespace clitk {
27   
28   //--------------------------------------------------------------------
29   class ITK_EXPORT ResampleImageGenericFilter: 
30     public ImageToImageGenericFilter<ResampleImageGenericFilter> {
31     
32   public: 
33     // Constructor
34     ResampleImageGenericFilter();
35
36     // Types
37     typedef ResampleImageGenericFilter    Self;
38     typedef itk::SmartPointer<Self>       Pointer;
39     typedef itk::SmartPointer<const Self> ConstPointer;
40     typedef args_info_clitkResampleImage  ArgsInfoType;
41
42     // New
43     itkNewMacro(Self);
44
45     // Args
46     void SetArgsInfo(const ArgsInfoType & a);
47     
48     // Main function
49     template<class InputImageType> void UpdateWithInputImageType();
50
51   protected:
52     ArgsInfoType mArgsInfo;
53     template<unsigned int Dim> void InitializeImageType();
54      
55   }; // end class ResampleImageGenericFilter
56   //--------------------------------------------------------------------
57     
58 } // end namespace clitk
59 //--------------------------------------------------------------------
60
61 #ifndef ITK_MANUAL_INSTANTIATION
62 #include "clitkResampleImageGenericFilter.txx"
63 #endif
64
65 #endif /* end #define CLITKIRESAMPLEIMAGEGENERICFILTER_H */
66