ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkThinPlateSplineKernelTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkThinPlateSplineKernelTransform_h
19 #define itkThinPlateSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
33 template<typename TParametersValueType,
34  unsigned int NDimensions = 3>
35 // Number of dimensions
36 class ITK_TEMPLATE_EXPORT ThinPlateSplineKernelTransform:
37  public KernelTransform<TParametersValueType, NDimensions>
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_ASSIGN(ThinPlateSplineKernelTransform);
41 
47 
49  itkNewMacro(Self);
50 
53 
55  using ScalarType = typename Superclass::ScalarType;
56 
58  using ParametersType = typename Superclass::ParametersType;
59  using FixedParametersType = typename Superclass::FixedParametersType;
60 
62  using JacobianType = typename Superclass::JacobianType;
63  using JacobianPositionType = typename Superclass::JacobianPositionType;
64  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
65 
67  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
68 
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  ~ThinPlateSplineKernelTransform() override = default;
81 
83  using GMatrixType = typename Superclass::GMatrixType;
84 
93  void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const override;
94 
97  void ComputeDeformationContribution(const InputPointType & inputPoint,
98  OutputPointType & result) const override;
99 };
100 } // namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkThinPlateSplineKernelTransform.hxx"
104 #endif
105 
106 #endif // itkThinPlateSplineKernelTransform_h
Light weight base class for most itk classes.
typename Superclass::JacobianType JacobianType
typename Superclass::InputPointType InputPointType
vnl_matrix_fixed< TParametersValueType, NDimensions, NDimensions > GMatrixType
typename Superclass::OutputVectorType OutputVectorType
typename PointSetType::PointsContainerIterator PointsIterator
typename Superclass::OutputPointType OutputPointType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::ScalarType ScalarType
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::ParametersType ParametersType
typename Superclass::InputVectorType InputVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType