|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNearestNeighborInterpolateImageFunction_h
19 #define itkNearestNeighborInterpolateImageFunction_h
38 template <
typename TInputImage,
typename TCoordRep =
double>
64 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
88 this->ConvertContinuousIndexToNearestIndex(index, nindex);
89 return static_cast<OutputType>(this->GetInputImage()->GetPixel(nindex));
104 Superclass::PrintSelf(os, indent);
typename InputImageType::SizeType SizeType
ImageBaseType::SizeType SizeType
Control indentation during Print() invocation.
ImageBaseType::IndexType IndexType
Light weight base class for most itk classes.
typename Superclass::ContinuousIndexType ContinuousIndexType
typename Superclass::InputImageType InputImageType
typename Superclass::OutputType OutputType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
void PrintSelf(std::ostream &os, Indent indent) const override
Nearest neighbor interpolation of a scalar image.
SizeType GetRadius() const override
Base class for all image interpolators.
typename Superclass::IndexType IndexType