00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkVectorLinearInterpolateImageFunction_h
00018 #define __itkVectorLinearInterpolateImageFunction_h
00019
00020 #include "itkVectorInterpolateImageFunction.h"
00021
00022 namespace itk
00023 {
00024
00041 template <class TInputImage, class TCoordRep = double>
00042 class ITK_EXPORT VectorLinearInterpolateImageFunction :
00043 public VectorInterpolateImageFunction<TInputImage,TCoordRep>
00044 {
00045 public:
00046
00048 typedef VectorLinearInterpolateImageFunction Self;
00049 typedef VectorInterpolateImageFunction<TInputImage,TCoordRep> Superclass;
00050 typedef SmartPointer<Self> Pointer;
00051 typedef SmartPointer<const Self> ConstPointer;
00052
00054 itkNewMacro(Self);
00055
00057 itkTypeMacro(VectorLinearInterpolateImageFunction,
00058 VectorInterpolateImageFunction);
00059
00061 typedef typename Superclass::InputImageType InputImageType;
00062 typedef typename Superclass::PixelType PixelType;
00063 typedef typename Superclass::ValueType ValueType;
00064 typedef typename Superclass::RealType RealType;
00065
00067 itkStaticConstMacro(Dimension, unsigned int,
00068 Superclass::Dimension);
00069
00071 itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00072
00074 typedef typename Superclass::IndexType IndexType;
00075
00077 typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
00078
00080 typedef typename Superclass::OutputType OutputType;
00081
00090 virtual OutputType EvaluateAtContinuousIndex(
00091 const ContinuousIndexType & index ) const;
00092
00093 protected:
00094 VectorLinearInterpolateImageFunction();
00095 ~VectorLinearInterpolateImageFunction(){};
00096 void PrintSelf(std::ostream& os, Indent indent) const;
00097
00098 private:
00099 VectorLinearInterpolateImageFunction(const Self&);
00100 void operator=(const Self&);
00101
00103 static const unsigned long m_Neighbors;
00104
00105 };
00106
00107 }
00108
00109
00110 #define ITK_TEMPLATE_VectorLinearInterpolateImageFunction(_, EXPORT, x, y) namespace itk { \
00111 _(2(class EXPORT VectorLinearInterpolateImageFunction< ITK_TEMPLATE_2 x >)) \
00112 namespace Templates { typedef VectorLinearInterpolateImageFunction< ITK_TEMPLATE_2 x > \
00113 VectorLinearInterpolateImageFunction##y; } \
00114 }
00115
00116 #if ITK_TEMPLATE_EXPLICIT
00117 # include "Templates/itkVectorLinearInterpolateImageFunction+-.h"
00118 #endif
00119
00120 #if ITK_TEMPLATE_TXX
00121 # include "itkVectorLinearInterpolateImageFunction.txx"
00122 #endif
00123
00124 #endif
00125