18 #ifndef itkVectorNearestNeighborInterpolateImageFunction_h
19 #define itkVectorNearestNeighborInterpolateImageFunction_h
42 template <
typename TInputImage,
typename TCoordinate =
double>
62 using typename Superclass::InputImageType;
63 using typename Superclass::PixelType;
64 using typename Superclass::ValueType;
65 using typename Superclass::RealType;
71 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
77 using typename Superclass::ContinuousIndexType;
80 using typename Superclass::OutputType;
95 this->ConvertContinuousIndexToNearestIndex(index, nindex);
96 return static_cast<OutputType>(this->GetInputImage()->GetPixel(nindex));