go home Home | Main Page | Modules | 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 TCoordRep = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
49 : public BSplineInterpolationWeightFunction<TCoordRep, VSpaceDimension, VSplineOrder>
50{
51public:
53
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
112 void
113 Evaluate(const ContinuousIndexType & index, WeightsType & weights, IndexType & startIndex) const override;
114
116 unsigned int m_NumberOfIndices{};
117
122};
123
124} // end namespace itk
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkRecursiveBSplineInterpolationWeightFunction.hxx"
128#endif
129
130#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.
Returns the weights over the support region used for B-spline interpolation/reconstruction.
~RecursiveBSplineInterpolationWeightFunction() override=default
WeightsType EvaluateSecondOrderDerivative(const ContinuousIndexType &index, const IndexType &startIndex) const
WeightsType EvaluateDerivative(const ContinuousIndexType &index, const IndexType &startIndex) const
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
ITK_DISALLOW_COPY_AND_MOVE(RecursiveBSplineInterpolationWeightFunction)
WeightsType Evaluate(const ContinuousIndexType &index, IndexType &startIndex) const
WeightsType Evaluate(const ContinuousIndexType &index) const override
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
void Evaluate(const ContinuousIndexType &index, WeightsType &weights, IndexType &startIndex) const override


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo