18 #ifndef itkInterpolateImageFunction_h
19 #define itkInterpolateImageFunction_h
44 template <
typename TInputImage,
typename TCoordRep =
double>
46 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
69 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
100 this->GetInputImage()->TransformPhysicalPointToContinuousIndex(point, index);
101 return (this->EvaluateAtContinuousIndex(index));
115 EvaluateAtContinuousIndex(
const ContinuousIndexType & index)
const override = 0;
128 return (static_cast<RealType>(this->GetInputImage()->GetPixel(index)));
136 #if defined(ITKV4_COMPATIBILITY)
142 const InputImageType * input = this->GetInputImage();
145 itkExceptionMacro(
"Input image required!");
147 return input->GetLargestPossibleRegion().GetSize();
151 GetRadius()
const = 0;
156 InterpolateImageFunction() =
default;
157 ~InterpolateImageFunction()
override =
default;
161 Superclass::PrintSelf(os, indent);