]> Creatis software - clitk.git/blob - filters/clitkResampleImageGenericFilter.h
- new resample image (itk style)
[clitk.git] / filters / 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://oncora1.lyon.fnclcc.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 "clitkImageToImageGenericFilter.h"
24
25 namespace clitk {
26   
27   //--------------------------------------------------------------------
28   template<class args_info_type>
29   class ITK_EXPORT ResampleImageGenericFilter: 
30     public ImageToImageGenericFilter<ResampleImageGenericFilter<args_info_type> > {
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
41     // New
42     itkNewMacro(Self);
43
44     // Args
45     void SetArgsInfo(const args_info_type & a);
46     
47     // Main function
48     template<class InputImageType> void UpdateWithInputImageType();
49
50   protected:
51     args_info_type mArgsInfo;
52     template<unsigned int Dim> void InitializeImageType();
53      
54   }; // end class ResampleImageGenericFilter
55   //--------------------------------------------------------------------
56     
57 } // end namespace clitk
58 //--------------------------------------------------------------------
59
60 //--------------------------------------------------------------------
61 #ifndef ITK_MANUAL_INSTANTIATION
62 #include "clitkResampleImageGenericFilter.txx"
63 #endif
64 //--------------------------------------------------------------------
65
66 #endif /* end #define CLITKIRESAMPLEIMAGEGENERICFILTER_H */
67