18 #ifndef itkVectorInterpolateImageFunction_h
19 #define itkVectorInterpolateImageFunction_h
46 template <
typename TInputImage,
typename TCoordinate =
double>
48 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordinate>
57 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
71 using typename Superclass::InputImageType;
72 using PixelType =
typename InputImageType::PixelType;
83 using typename Superclass::ContinuousIndexType;
86 using typename Superclass::OutputType;
90 #ifndef ITK_FUTURE_LEGACY_REMOVE
91 using CoordRepType ITK_FUTURE_DEPRECATED(
92 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") =
CoordinateType;
104 this->GetInputImage()->template TransformPhysicalPointToContinuousIndex<TCoordinate>(
point);
105 return (this->EvaluateAtContinuousIndex(index));
120 EvaluateAtContinuousIndex(
const ContinuousIndexType & index)
const override = 0;
133 PixelType input = this->GetInputImage()->GetPixel(index);
136 for (
unsigned int k = 0; k < this->GetInputImage()->GetNumberOfComponentsPerPixel(); ++k)
138 output[k] = static_cast<double>(input[k]);