18#ifndef itkVectorNearestNeighborInterpolateImageFunction_h
19#define itkVectorNearestNeighborInterpolateImageFunction_h
42template <
typename TInputImage,
typename TCoordRep =
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));
NumericTraits< TInputImage::PixelType >::RealType OutputType
typename InputImageType::IndexType IndexType
Light weight base class for most itk classes.
Base class for all vector image interpolators.
Nearest neighbor interpolate a vector image at specified positions.
VectorNearestNeighborInterpolateImageFunction()=default
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
~VectorNearestNeighborInterpolateImageFunction() override=default
ImageBaseType::IndexType IndexType
constexpr unsigned int Dimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....