18 #ifndef itkNearestNeighborInterpolateImageFunction_h
19 #define itkNearestNeighborInterpolateImageFunction_h
37 template<
typename TInputImage,
typename TCoordRep =
double >
56 typedef typename Superclass::OutputType
OutputType;
62 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
83 this->ConvertContinuousIndexToNearestIndex(index, nindex);
84 return static_cast< OutputType >( this->GetInputImage()->GetPixel(nindex) );
91 { Superclass::PrintSelf(os, indent); }
Superclass::OutputType OutputType
Superclass::IndexType IndexType
Light weight base class for most itk classes.
~NearestNeighborInterpolateImageFunction() override
Nearest neighbor interpolation of a scalar image.
Superclass::IndexType IndexType
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::OutputType OutputType
void PrintSelf(std::ostream &os, Indent indent) const override
NearestNeighborInterpolateImageFunction()
Superclass::InputImageType InputImageType
SmartPointer< const Self > ConstPointer
NearestNeighborInterpolateImageFunction Self
SmartPointer< Self > Pointer
Superclass::ContinuousIndexType ContinuousIndexType
Base class for all image interpolaters.
Control indentation during Print() invocation.
InterpolateImageFunction< TInputImage, TCoordRep > Superclass
virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
ImageBaseType::IndexType IndexType