18 #ifndef __itkVectorInterpolateImageFunction_h
19 #define __itkVectorInterpolateImageFunction_h
45 template<
class TInputImage,
class TCoordRep =
double >
49 typename NumericTraits< typename TInputImage::PixelType >::RealType,
54 itkStaticConstMacro(Dimension,
unsigned int,
55 TInputImage::PixelType::Dimension);
58 itkStaticConstMacro(ImageDimension,
unsigned int,
59 TInputImage::ImageDimension);
75 typedef typename InputImageType::PixelType
PixelType;
103 this->GetInputImage()->TransformPhysicalPointToContinuousIndex(point, index);
104 return ( this->EvaluateAtContinuousIndex(index) );
117 virtual OutputType EvaluateAtContinuousIndex(
118 const ContinuousIndexType & index)
const = 0;
130 PixelType input = this->GetInputImage()->GetPixel(index);
133 for (
unsigned int k = 0;
134 k < this->GetInputImage()->GetNumberOfComponentsPerPixel(); k++ )
136 output[k] =
static_cast< double >( input[k] );
144 void PrintSelf(std::ostream & os,
Indent indent)
const
145 { Superclass::PrintSelf(os, indent); }
149 void operator=(
const Self &);