18 #ifndef __itkNearestNeighborInterpolateImageFunction_h
19 #define __itkNearestNeighborInterpolateImageFunction_h
37 template<
class TInputImage,
class 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) );
90 void PrintSelf(std::ostream & os,
Indent indent)
const
91 { Superclass::PrintSelf(os, indent); }
96 void operator=(
const Self &);