18#ifndef itkVectorInterpolateImageFunction_h
19#define itkVectorInterpolateImageFunction_h
46template <
typename TInputImage,
typename TCoordRep =
double>
48 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
57 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
71 using typename Superclass::InputImageType;
72 using PixelType =
typename InputImageType::PixelType;
83 using typename Superclass::ContinuousIndexType;
86 using typename Superclass::OutputType;
100 this->GetInputImage()->template TransformPhysicalPointToContinuousIndex<TCoordRep>(
point);
101 return (this->EvaluateAtContinuousIndex(index));
129 PixelType input = this->GetInputImage()->GetPixel(index);
132 for (
unsigned int k = 0; k < this->GetInputImage()->GetNumberOfComponentsPerPixel(); ++k)
134 output[k] =
static_cast<double>(input[k]);
NumericTraits< TInputImage::PixelType >::RealType OutputType
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Light weight base class for most itk classes.
Base class for all vector image interpolators.
typename PixelType::ValueType ValueType
OutputType Evaluate(const PointType &point) const override
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override=0
OutputType EvaluateAtIndex(const IndexType &index) const override
typename NumericTraits< ValueType >::RealType RealType
typename InputImageType::PixelType PixelType
VectorInterpolateImageFunction()=default
~VectorInterpolateImageFunction() override=default
ImageBaseType::IndexType IndexType
constexpr unsigned int Dimension
ImageBaseType::PointType PointType
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