go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkRecursiveBSplineInterpolationWeightFunction.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkRecursiveBSplineInterpolationWeightFunction_h
19#define itkRecursiveBSplineInterpolationWeightFunction_h
20
21#include "itkBSplineInterpolationWeightFunction.h"
22
26#include "itkMath.h"
27
28namespace itk
29{
47template <typename TCoordinate = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
49 : public BSplineInterpolationWeightFunction<TCoordinate, VSpaceDimension, VSplineOrder>
50{
51public:
53
56 using Superclass = BSplineInterpolationWeightFunction<TCoordinate, VSpaceDimension, VSplineOrder>;
57 using Pointer = SmartPointer<Self>;
58 using ConstPointer = SmartPointer<const Self>;
59
61 itkNewMacro(Self);
62
65
67 itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension);
68
70 itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder);
71
73 using typename Superclass::WeightsType;
74 using typename Superclass::IndexType;
75 using typename Superclass::SizeType;
76 using typename Superclass::ContinuousIndexType;
77
79 static constexpr unsigned NumberOfIndices = Math::UnsignedPower(VSplineOrder + 1, VSpaceDimension);
80
82 itkGetConstMacro(NumberOfIndices, unsigned int);
83
84 WeightsType
85 Evaluate(const ContinuousIndexType & index, IndexType & startIndex) const;
86
87 WeightsType
88 EvaluateDerivative(const ContinuousIndexType & index, const IndexType & startIndex) const;
89
90 WeightsType
91 EvaluateSecondOrderDerivative(const ContinuousIndexType & index, const IndexType & startIndex) const;
92
93protected:
96 using Superclass::PrintSelf;
97
98private:
101 WeightsType
102 Evaluate(const ContinuousIndexType & index) const override;
103
109 void
110 Evaluate(const ContinuousIndexType & index, WeightsType & weights, IndexType & startIndex) const override;
111
113 unsigned int m_NumberOfIndices{};
114
119};
120
121} // end namespace itk
122
123#ifndef ITK_MANUAL_INSTANTIATION
124# include "itkRecursiveBSplineInterpolationWeightFunction.hxx"
125#endif
126
127#endif
Derivative of a B-spline kernel used for density estimation and nonparametric regression.
B-spline kernel used for density estimation and nonparameteric regression.
Derivative of a B-spline kernel used for density estimation and nonparametric regression.
WeightsType EvaluateSecondOrderDerivative(const ContinuousIndexType &index, const IndexType &startIndex) const
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
ITK_DISALLOW_COPY_AND_MOVE(RecursiveBSplineInterpolationWeightFunction)
void Evaluate(const ContinuousIndexType &index, WeightsType &weights, IndexType &startIndex) const override
itkOverrideGetNameOfClassMacro(RecursiveBSplineInterpolationWeightFunction)
WeightsType Evaluate(const ContinuousIndexType &index) const override
BSplineInterpolationWeightFunction< TCoordinate, VSpaceDimension, VSplineOrder > Superclass
WeightsType EvaluateDerivative(const ContinuousIndexType &index, const IndexType &startIndex) const
BSplineSecondOrderDerivativeKernelFunction2< VSplineOrder > SecondOrderDerivativeKernelType
~RecursiveBSplineInterpolationWeightFunction() override=default
WeightsType Evaluate(const ContinuousIndexType &index, IndexType &startIndex) const
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)


Generated on 26-02-2026 for elastix by doxygen 1.16.1 (669aeeefca743c148e2d935b3d3c69535c7491e6) elastix logo