18#ifndef itkBSplineInterpolationWeightFunction_h
19#define itkBSplineInterpolationWeightFunction_h
47template <
typename TCoordinate =
float,
unsigned int VSpaceDimension = 2,
unsigned int VSplineOrder = 3>
49 :
public FunctionBase<ContinuousIndex<TCoordinate, VSpaceDimension>,
50 FixedArray<double, Math::UnsignedPower(VSplineOrder + 1, VSpaceDimension)>>
107#if !defined(ITK_LEGACY_REMOVE)
109 itkLegacyMacro(
SizeType GetSupportSize()
const)
115 itkLegacyMacro(
unsigned int GetNumberOfWeights()
const)
117 return Self::NumberOfWeights;
128#ifndef ITK_MANUAL_INSTANTIATION
129# include "itkBSplineInterpolationWeightFunction.hxx"
static constexpr unsigned int SplineOrder
FunctionBase< ContinuousIndex< TCoordinate, VSpaceDimension >, FixedArray< double, Math::UnsignedPower(VSplineOrder+1, VSpaceDimension)> > Superclass
SmartPointer< Self > Pointer
~BSplineInterpolationWeightFunction() override=default
virtual void Evaluate(const ContinuousIndexType &index, WeightsType &weights, IndexType &startIndex) const
SmartPointer< const Self > ConstPointer
Index< VSpaceDimension > IndexType
static constexpr unsigned int SpaceDimension
ContinuousIndex< TCoordinate, VSpaceDimension > ContinuousIndexType
BSplineInterpolationWeightFunction()=default
typename Superclass::OutputType WeightsType
static constexpr SizeType SupportSize
Size< VSpaceDimension > SizeType
BSplineInterpolationWeightFunction Self
WeightsType Evaluate(const ContinuousIndexType &index) const override
static constexpr unsigned int NumberOfWeights
A templated class holding a point in n-Dimensional image space.
Simulate a standard C array with copy semantics.
FixedArray< double, Math::UnsignedPower(VSplineOrder+1, VSpaceDimension)> OutputType
Implements transparent reference counting.
constexpr TReturnType UnsignedPower(const uintmax_t base, const uintmax_t exponent) noexcept
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional index in a n-dimensional image.
Represent a n-dimensional size (bounds) of a n-dimensional image.
static constexpr Self Filled(const SizeValueType value)