go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBSplineInterpolationSecondOrderDerivativeWeightFunction.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 itkBSplineInterpolationSecondOrderDerivativeWeightFunction_h
19#define itkBSplineInterpolationSecondOrderDerivativeWeightFunction_h
20
22#include <vnl/vnl_vector_fixed.h>
23
24namespace itk
25{
26
43
44template <typename TCoordinate = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
46 : public BSplineInterpolationWeightFunctionBase<TCoordinate, VSpaceDimension, VSplineOrder>
47{
48public:
50
54 using Pointer = SmartPointer<Self>;
55 using ConstPointer = SmartPointer<const Self>;
56
58 itkNewMacro(Self);
59
62
64 itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension);
65
67 itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder);
68
70 using typename Superclass::WeightsType;
71 using typename Superclass::IndexType;
72 using typename Superclass::SizeType;
74
76 virtual void
77 SetDerivativeDirections(unsigned int dir0, unsigned int dir1);
78
79protected:
82
84 using typename Superclass::KernelType;
87 using typename Superclass::OneDWeightsType;
88
98 void
100 const IndexType & startIndex,
101 OneDWeightsType & weights1D) const override;
102
104 void
105 PrintSelf(std::ostream & os, Indent indent) const override;
106
107private:
108 vnl_vector_fixed<double, 2> m_DerivativeDirections{};
110};
111
112} // end namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkBSplineInterpolationSecondOrderDerivativeWeightFunction.hxx"
116#endif
117
118#endif
itkOverrideGetNameOfClassMacro(BSplineInterpolationSecondOrderDerivativeWeightFunction)
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
void Compute1DWeights(const ContinuousIndexType &index, const IndexType &startIndex, OneDWeightsType &weights1D) const override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetDerivativeDirections(unsigned int dir0, unsigned int dir1)
ITK_DISALLOW_COPY_AND_MOVE(BSplineInterpolationSecondOrderDerivativeWeightFunction)
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
ContinuousIndex< TCoordinate, VSpaceDimension > ContinuousIndexType
BSplineDerivativeKernelFunction< VSplineOrder > DerivativeKernelType
Matrix< double, Self::SpaceDimension, VSplineOrder+1 > OneDWeightsType
BSplineSecondOrderDerivativeKernelFunction2< VSplineOrder > SecondOrderDerivativeKernelType


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