#ifndef __clitkGenericVectorInterpolator_h #define __clitkGenericVectorInterpolator_h //clitk include #include "clitkImageCommon.h" //itk include #include "itkVectorNearestNeighborInterpolateImageFunction.h" #include "itkVectorLinearInterpolateImageFunction.h" #include "clitkVectorBSplineInterpolateImageFunction.h" #include "clitkVectorBSplineInterpolateImageFunctionWithLUT.h" /* Requires at least the following section is the .ggo file option "interpVF" - "Interpolation: 0=NN, 1=Linear, 2=BSpline, 3=BLUT" int no default="1" option "interpVFOrder" - "Order if BLUT or BSpline (0-5)" int no default="3" option "interpVFSF" - "Sampling factor if BLUT" int no default="20" */ namespace clitk { template class GenericVectorInterpolator : public itk::LightObject { public: //============================================== typedef GenericVectorInterpolator Self; typedef itk::LightObject Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; typedef itk::VectorInterpolateImageFunction InterpolatorType; typedef typename InterpolatorType::Pointer InterpolatorPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); //============================================== //Set members void SetArgsInfo(args_info_type args_info) { m_ArgsInfo= args_info; m_Verbose=m_ArgsInfo.verbose_flag; } //============================================== //Get members InterpolatorPointer GetInterpolatorPointer(void); //============================================== protected: GenericVectorInterpolator(); ~GenericVectorInterpolator() {}; private: args_info_type m_ArgsInfo; InterpolatorPointer m_Interpolator; bool m_Verbose; }; } // end namespace clitk #ifndef ITK_MANUAL_INSTANTIATION #include "clitkGenericVectorInterpolator.txx" #endif #endif // #define __clitkGenericVectorInterpolator_h