18#ifndef itkInterpolateImageFunction_h
19#define itkInterpolateImageFunction_h
44template <
typename TInputImage,
typename TCoordRep =
double>
46 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
63 using typename Superclass::OutputType;
66 using typename Superclass::InputImageType;
69 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
82 using typename Superclass::ContinuousIndexType;
99 this->GetInputImage()->template TransformPhysicalPointToContinuousIndex<TCoordRep>(
point);
100 return (this->EvaluateAtContinuousIndex(index));
128 return (
static_cast<RealType>(this->GetInputImage()->GetPixel(index)));
145 Superclass::PrintSelf(os, indent);
NumericTraits< TInputImage::PixelType >::RealType OutputType
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Control indentation during Print() invocation.
Base class for all image interpolators.
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override=0
typename InputImageType::SizeType SizeType
virtual SizeType GetRadius() const =0
~InterpolateImageFunction() override=default
OutputType EvaluateAtIndex(const IndexType &index) const override
void PrintSelf(std::ostream &os, Indent indent) const override
typename NumericTraits< typename TInputImage::PixelType >::RealType RealType
InterpolateImageFunction()=default
OutputType Evaluate(const PointType &point) const override
Light weight base class for most itk classes.
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents