]> Creatis software - clitk.git/blob - filters/clitkImageResampleGenericFilter.h
removed headers
[clitk.git] / filters / clitkImageResampleGenericFilter.h
1 #ifndef CLITKIMAGERESAMPLEGENERICFILTER_H
2 #define CLITKIMAGERESAMPLEGENERICFILTER_H
3 /**
4  -------------------------------------------------------------------
5  * @file   clitkImageResampleGenericFilter.h
6  * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7  * @date   23 Feb 2008 08:37:53
8
9  * @brief  
10  -------------------------------------------------------------------*/
11
12 // clitk include
13 #include "clitkImageToImageGenericFilter.h"
14
15 namespace clitk {
16   
17   //--------------------------------------------------------------------
18   class ImageResampleGenericFilter: 
19     public ImageToImageGenericFilter<ImageResampleGenericFilter> {
20     
21   public: 
22     // constructor
23     ImageResampleGenericFilter();
24
25     // Types
26     typedef ImageResampleGenericFilter    Self;
27     typedef itk::SmartPointer<Self>       Pointer;
28     typedef itk::SmartPointer<const Self> ConstPointer;
29
30     // New
31     itkNewMacro(Self);
32     
33     void SetOutputSize(const std::vector<int> & size);
34     void SetOutputSpacing(const std::vector<double> & spacing);
35     void SetGaussianSigma(const std::vector<double> & sigma);
36     void SetInterpolationName(const std::string & inter);
37     void SetDefaultPixelValue(double dpv) { mDefaultPixelValue = dpv;}
38     void SetBSplineOrder(int o) { mBSplineOrder = o; }
39     void SetBLUTSampling(int b) { mSamplingFactors.resize(1); mSamplingFactors[0] = b; }
40
41     //--------------------------------------------------------------------
42     template<class InputImageType> void UpdateWithInputImageType();
43
44   protected:
45     //--------------------------------------------------------------------
46     std::string mInterpolatorName;
47     std::vector<int> mOutputSize;
48     std::vector<double> mOutputSpacing;
49     std::vector<double> mOutputOrigin;
50     double mDefaultPixelValue;
51     bool mApplyGaussianFilterBefore;
52     std::vector<double> mSigma;
53     int mBSplineOrder;
54     std::vector<int> mSamplingFactors;
55
56     //--------------------------------------------------------------------
57     template<unsigned int Dim> void InitializeImageTypeWithDim();
58      
59   }; // end class ImageResampleGenericFilter
60   //--------------------------------------------------------------------
61     
62   //#include "clitkImageResampleGenericFilter.txx"
63
64 } // end namespace
65 //--------------------------------------------------------------------
66     
67 #endif /* end #define CLITKIMAGERESAMPLEGENERICFILTER_H */
68