go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBSplineInterpolationDerivativeWeightFunction.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 itkBSplineInterpolationDerivativeWeightFunction_h
19#define itkBSplineInterpolationDerivativeWeightFunction_h
20
22
23namespace itk
24{
25
43template <class TCoordRep = float, unsigned int VSpaceDimension = 2, unsigned int VSplineOrder = 3>
45 : public BSplineInterpolationWeightFunctionBase<TCoordRep, VSpaceDimension, VSplineOrder>
46{
47public:
49
53 using Pointer = SmartPointer<Self>;
54 using ConstPointer = SmartPointer<const Self>;
55
57 itkNewMacro(Self);
58
61
63 itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension);
64
66 itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder);
67
69 using typename Superclass::WeightsType;
70 using typename Superclass::IndexType;
71 using typename Superclass::SizeType;
73
75 virtual void
76 SetDerivativeDirection(unsigned int dir);
77
78protected:
81
83 using typename Superclass::KernelType;
86 using typename Superclass::TableType;
87 using typename Superclass::OneDWeightsType;
88
96 void
98 const IndexType & startIndex,
99 OneDWeightsType & weights1D) const override;
100
102 void
103 PrintSelf(std::ostream & os, Indent indent) const override;
104
105private:
108};
109
110} // end namespace itk
111
112#ifndef ITK_MANUAL_INSTANTIATION
113# include "itkBSplineInterpolationDerivativeWeightFunction.hxx"
114#endif
115
116#endif
Returns the weights over the support region used for B-spline interpolation/reconstruction.
ITK_DISALLOW_COPY_AND_MOVE(BSplineInterpolationDerivativeWeightFunction)
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
virtual void SetDerivativeDirection(unsigned int dir)
void Compute1DWeights(const ContinuousIndexType &index, const IndexType &startIndex, OneDWeightsType &weights1D) const override
Matrix< double, Self::SpaceDimension, VSplineOrder+1 > OneDWeightsType
itkStaticConstMacro(SpaceDimension, unsigned int, VSpaceDimension)
~BSplineInterpolationDerivativeWeightFunction() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
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