go home Home | Main Page | Modules | 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
44template <class TCoordRep = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
46 : public BSplineInterpolationWeightFunctionBase<TCoordRep, 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::TableType;
88 using typename Superclass::OneDWeightsType;
89
99 void
101 const IndexType & startIndex,
102 OneDWeightsType & weights1D) const override;
103
105 void
106 PrintSelf(std::ostream & os, Indent indent) const override;
107
108private:
109 vnl_vector_fixed<double, 2> m_DerivativeDirections;
111};
112
113} // end namespace itk
114
115#ifndef ITK_MANUAL_INSTANTIATION
116# include "itkBSplineInterpolationSecondOrderDerivativeWeightFunction.hxx"
117#endif
118
119#endif
Returns the weights over the support region used for B-spline interpolation/reconstruction.
virtual void SetDerivativeDirections(unsigned int dir0, unsigned int dir1)
ITK_DISALLOW_COPY_AND_MOVE(BSplineInterpolationSecondOrderDerivativeWeightFunction)
void Compute1DWeights(const ContinuousIndexType &index, const IndexType &startIndex, OneDWeightsType &weights1D) const override
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
void PrintSelf(std::ostream &os, Indent indent) const override
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
Returns the weights over the support region used for B-spline interpolation/reconstruction.
BSplineDerivativeKernelFunction< VSplineOrder > DerivativeKernelType
Matrix< double, Self::SpaceDimension, VSplineOrder+1 > OneDWeightsType
ContinuousIndex< TCoordRep, VSpaceDimension > ContinuousIndexType
B-spline kernel used for density estimation and nonparameteric regression.
Derivative of a B-spline kernel used for density estimation and nonparametric regression.


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