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 NumberOfWeights = (VSplineOrder + 1) * VSpaceDimension;
80
82 static constexpr unsigned NumberOfIndices = Math::UnsignedPower(VSplineOrder + 1, VSpaceDimension);
83
85 itkGetConstMacro(NumberOfIndices, unsigned int);
86
87 WeightsType
88 Evaluate(const ContinuousIndexType & index, IndexType & startIndex) const;
89
90 WeightsType
91 EvaluateDerivative(const ContinuousIndexType & index, const IndexType & startIndex) const;
92
93 WeightsType
94 EvaluateSecondOrderDerivative(const ContinuousIndexType & index, const IndexType & startIndex) const;
95
96protected:
99 void
100 PrintSelf(std::ostream & os, Indent indent) const override;
101
102private:
105 WeightsType
106 Evaluate(const ContinuousIndexType & index) const override;
107
116 void
117 Evaluate(const ContinuousIndexType & index, WeightsType & weights, IndexType & startIndex) const override;
118
120 unsigned int m_NumberOfWeights;
121 unsigned int m_NumberOfIndices;
123
128};
129
130} // end namespace itk
131
132#ifndef ITK_MANUAL_INSTANTIATION
133# include "itkRecursiveBSplineInterpolationWeightFunction.hxx"
134#endif
135
136#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
void PrintSelf(std::ostream &os, Indent indent) const override
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
void Evaluate(const ContinuousIndexType &index, WeightsType &weights, IndexType &startIndex) const override


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo