18 #ifndef itkNearestNeighborInterpolateImageFunction_h
19 #define itkNearestNeighborInterpolateImageFunction_h
37 template<
typename TInputImage,
typename TCoordRep =
double >
64 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
85 this->ConvertContinuousIndexToNearestIndex(index, nindex);
86 return static_cast< OutputType >( this->GetInputImage()->GetPixel(nindex) );
93 { Superclass::PrintSelf(os, indent); }
Light weight base class for most itk classes.
typename Superclass::ContinuousIndexType ContinuousIndexType
typename Superclass::OutputType OutputType
Nearest neighbor interpolation of a scalar image.
typename Superclass::IndexType IndexType
void PrintSelf(std::ostream &os, Indent indent) const override
ImageBaseType::IndexType IndexType
Base class for all image interpolaters.
typename Superclass::InputImageType InputImageType
Control indentation during Print() invocation.
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override