ITK  5.4.0
Insight Toolkit
itkThinPlateR2LogRSplineKernelTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 itkThinPlateR2LogRSplineKernelTransform_h
19 #define itkThinPlateR2LogRSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
35 template <typename TParametersValueType, unsigned int VDimension = 3>
36 // Number of dimensions
37 class ITK_TEMPLATE_EXPORT ThinPlateR2LogRSplineKernelTransform
38  : public KernelTransform<TParametersValueType, VDimension>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_MOVE(ThinPlateR2LogRSplineKernelTransform);
42 
48 
50  itkNewMacro(Self);
51 
53  itkOverrideGetNameOfClassMacro(ThinPlateR2LogRSplineKernelTransform);
54 
56  using typename Superclass::ScalarType;
57 
59  using typename Superclass::ParametersType;
60  using typename Superclass::FixedParametersType;
61 
63  using typename Superclass::JacobianType;
64  using typename Superclass::JacobianPositionType;
65  using typename Superclass::InverseJacobianPositionType;
66 
68  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
69 
70  using typename Superclass::InputPointType;
71  using typename Superclass::OutputPointType;
72  using typename Superclass::InputVectorType;
73  using typename Superclass::OutputVectorType;
74  using typename Superclass::InputCovariantVectorType;
75  using typename Superclass::OutputCovariantVectorType;
76  using typename Superclass::PointsIterator;
77 
78 protected:
80  ~ThinPlateR2LogRSplineKernelTransform() override = default;
81 
82  using typename Superclass::GMatrixType;
91  void
92  ComputeG(const InputVectorType & x, GMatrixType & gmatrix) const override;
93 
96  void
97  ComputeDeformationContribution(const InputPointType & thisPoint, OutputPointType & result) const override;
98 };
99 } // namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 # include "itkThinPlateR2LogRSplineKernelTransform.hxx"
103 #endif
104 
105 #endif // itkThinPlateR2LogRSplineKernelTransform_h
itk::KernelTransform::GMatrixType
vnl_matrix_fixed< TParametersValueType, VDimension, VDimension > GMatrixType
Definition: itkKernelTransform.h:254
itk::ThinPlateR2LogRSplineKernelTransform
Definition: itkThinPlateR2LogRSplineKernelTransform.h:37
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::SmartPointer< Self >
itkKernelTransform.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::KernelTransform
Definition: itkKernelTransform.h:61