18 #ifndef __itkVectorInterpolateImageFunction_h
19 #define __itkVectorInterpolateImageFunction_h
26 #ifndef __itkVectorCentralDifferenceImageFunction_h
33 template<
typename T >
57 template<
class TInputImage,
class TCoordRep =
double >
61 typename NumericTraits< typename TInputImage::PixelType >::RealType,
66 itkStaticConstMacro(Dimension,
unsigned int,
67 TInputImage::PixelType::Dimension);
70 itkStaticConstMacro(ImageDimension,
unsigned int,
71 TInputImage::ImageDimension);
87 typedef typename InputImageType::PixelType
PixelType;
115 this->GetInputImage()->TransformPhysicalPointToContinuousIndex(point, index);
116 return ( this->EvaluateAtContinuousIndex(index) );
129 virtual OutputType EvaluateAtContinuousIndex(
130 const ContinuousIndexType & index)
const = 0;
142 PixelType input = this->GetInputImage()->GetPixel(index);
145 for (
unsigned int k = 0;
146 k < this->GetInputImage()->GetNumberOfComponentsPerPixel(); k++ )
148 output[k] =
static_cast< double >( input[k] );
156 void PrintSelf(std::ostream & os,
Indent indent)
const
157 { Superclass::PrintSelf(os, indent); }
160 void operator=(
const Self &);