1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18 #ifndef CLITKIMAGERESAMPLEGENERICFILTER_H
19 #define CLITKIMAGERESAMPLEGENERICFILTER_H
21 -------------------------------------------------------------------
22 * @file clitkImageResampleGenericFilter.h
23 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
24 * @date 23 Feb 2008 08:37:53
27 -------------------------------------------------------------------*/
30 #include "clitkImageToImageGenericFilter.h"
34 //--------------------------------------------------------------------
35 class ImageResampleGenericFilter:
36 public ImageToImageGenericFilter<ImageResampleGenericFilter> {
40 ImageResampleGenericFilter();
43 typedef ImageResampleGenericFilter Self;
44 typedef itk::SmartPointer<Self> Pointer;
45 typedef itk::SmartPointer<const Self> ConstPointer;
50 void SetOutputSize(const std::vector<int> & size);
51 void SetOutputSpacing(const std::vector<double> & spacing);
52 void SetGaussianSigma(const std::vector<double> & sigma);
53 void SetInterpolationName(const std::string & inter);
54 void SetDefaultPixelValue(double dpv) { mDefaultPixelValue = dpv;}
55 void SetBSplineOrder(int o) { mBSplineOrder = o; }
56 void SetBLUTSampling(int b) { mSamplingFactors.resize(1); mSamplingFactors[0] = b; }
58 //--------------------------------------------------------------------
59 template<class InputImageType> void UpdateWithInputImageType();
62 //--------------------------------------------------------------------
63 std::string mInterpolatorName;
64 std::vector<int> mOutputSize;
65 std::vector<double> mOutputSpacing;
66 std::vector<double> mOutputOrigin;
67 double mDefaultPixelValue;
68 bool mApplyGaussianFilterBefore;
69 std::vector<double> mSigma;
71 std::vector<int> mSamplingFactors;
73 //--------------------------------------------------------------------
74 template<unsigned int Dim> void InitializeImageTypeWithDim();
76 }; // end class ImageResampleGenericFilter
77 //--------------------------------------------------------------------
79 //#include "clitkImageResampleGenericFilter.txx"
82 //--------------------------------------------------------------------
84 #endif /* end #define CLITKIMAGERESAMPLEGENERICFILTER_H */