go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBSplineInterpolationWeightFunction2.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 itkBSplineInterpolationWeightFunction2_h
19#define itkBSplineInterpolationWeightFunction2_h
20
22
23namespace itk
24{
25
42template <class TCoordRep = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
43class ITK_TEMPLATE_EXPORT BSplineInterpolationWeightFunction2
44 : public BSplineInterpolationWeightFunctionBase<TCoordRep, VSpaceDimension, VSplineOrder>
45{
46public:
48
52 using Pointer = SmartPointer<Self>;
53 using ConstPointer = SmartPointer<const Self>;
54
56 itkNewMacro(Self);
57
60
62 itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension);
63
65 itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder);
66
68 using typename Superclass::WeightsType;
69 using typename Superclass::IndexType;
70 using typename Superclass::SizeType;
72
73protected:
76
78 using typename Superclass::KernelType;
81 using typename Superclass::OneDWeightsType;
82 using typename Superclass::WeightArrayType;
83
84 /* Compute the 1D weights, which are:
85 * [ \beta^3( x[i] - startIndex[i] ), \beta^3( x[i] - startIndex[i] - 1 ),
86 * \beta^3( x[i] - startIndex[i] - 2 ), \beta^3( x[i] - startIndex[i] - 3 ) ]
87 */
88 void
90 const IndexType & startIndex,
91 OneDWeightsType & weights1D) const override;
92};
93
94} // end namespace itk
95
96#ifndef ITK_MANUAL_INSTANTIATION
97# include "itkBSplineInterpolationWeightFunction2.hxx"
98#endif
99
100#endif
Returns the weights over the support region used for B-spline interpolation/reconstruction.
~BSplineInterpolationWeightFunction2() override=default
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
Matrix< double, Self::SpaceDimension, VSplineOrder+1 > OneDWeightsType
ITK_DISALLOW_COPY_AND_MOVE(BSplineInterpolationWeightFunction2)
void Compute1DWeights(const ContinuousIndexType &index, const IndexType &startIndex, OneDWeightsType &weights1D) const override
ContinuousIndex< TCoordRep, VSpaceDimension > ContinuousIndexType
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
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 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo