ITK  5.2.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  * 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 itkThinPlateR2LogRSplineKernelTransform_h
19 #define itkThinPlateR2LogRSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
35 template <typename TParametersValueType, unsigned int NDimensions = 3>
36 // Number of dimensions
37 class ITK_TEMPLATE_EXPORT ThinPlateR2LogRSplineKernelTransform
38  : public KernelTransform<TParametersValueType, NDimensions>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_MOVE(ThinPlateR2LogRSplineKernelTransform);
42 
48 
50  itkNewMacro(Self);
51 
54 
56  using ScalarType = typename Superclass::ScalarType;
57 
59  using ParametersType = typename Superclass::ParametersType;
60  using FixedParametersType = typename Superclass::FixedParametersType;
61 
63  using JacobianType = typename Superclass::JacobianType;
64  using JacobianPositionType = typename Superclass::JacobianPositionType;
65  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
66 
68  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
69 
70  using InputPointType = typename Superclass::InputPointType;
71  using OutputPointType = typename Superclass::OutputPointType;
72  using InputVectorType = typename Superclass::InputVectorType;
73  using OutputVectorType = typename Superclass::OutputVectorType;
74  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
75  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
76  using PointsIterator = typename Superclass::PointsIterator;
77 
78 protected:
80  ~ThinPlateR2LogRSplineKernelTransform() override = default;
81 
82  using GMatrixType = 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::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkKernelTransform.h:91
itk::ThinPlateR2LogRSplineKernelTransform
Definition: itkThinPlateR2LogRSplineKernelTransform.h:37
itk::KernelTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkKernelTransform.h:82
itk::KernelTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkKernelTransform.h:90
itk::SmartPointer< Self >
itkKernelTransform.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::KernelTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkKernelTransform.h:106
itk::KernelTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkKernelTransform.h:101
itk::KernelTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkKernelTransform.h:89
itk::KernelTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkKernelTransform.h:102
itk::KernelTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkKernelTransform.h:98
itk::KernelTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkKernelTransform.h:85
itk::KernelTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkKernelTransform.h:105
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::KernelTransform::GMatrixType
vnl_matrix_fixed< TParametersValueType, NDimensions, NDimensions > GMatrixType
Definition: itkKernelTransform.h:254
itk::KernelTransform::PointsIterator
typename PointSetType::PointsContainerIterator PointsIterator
Definition: itkKernelTransform.h:123
itk::KernelTransform
Definition: itkKernelTransform.h:61
itk::KernelTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkKernelTransform.h:97
itk::KernelTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkKernelTransform.h:86