18 #ifndef itkNearestNeighborInterpolateImageFunction_h
19 #define itkNearestNeighborInterpolateImageFunction_h
38 template <
typename TInputImage,
typename TCoordRep =
double>
58 using typename Superclass::OutputType;
61 using typename Superclass::InputImageType;
64 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
73 using typename Superclass::ContinuousIndexType;
88 this->ConvertContinuousIndexToNearestIndex(index, nindex);
89 return static_cast<OutputType>(this->GetInputImage()->GetPixel(nindex));
104 Superclass::PrintSelf(os, indent);