ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkThinPlateR2LogRSplineKernelTransform.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 itkThinPlateR2LogRSplineKernelTransform_h
19 #define itkThinPlateR2LogRSplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
35 template<typename TParametersValueType,
36  unsigned int NDimensions = 3>
37 // Number of dimensions
38 class ITK_TEMPLATE_EXPORT ThinPlateR2LogRSplineKernelTransform:
39  public KernelTransform<TParametersValueType, NDimensions>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(ThinPlateR2LogRSplineKernelTransform);
43 
49 
51  itkNewMacro(Self);
52 
55 
57  using ScalarType = typename Superclass::ScalarType;
58 
60  using ParametersType = typename Superclass::ParametersType;
61  using FixedParametersType = typename Superclass::FixedParametersType;
62 
64  using JacobianType = typename Superclass::JacobianType;
65  using JacobianPositionType = typename Superclass::JacobianPositionType;
66  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
67 
69  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
70 
71  using InputPointType = typename Superclass::InputPointType;
72  using OutputPointType = typename Superclass::OutputPointType;
73  using InputVectorType = typename Superclass::InputVectorType;
74  using OutputVectorType = typename Superclass::OutputVectorType;
75  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
76  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
77  using PointsIterator = typename Superclass::PointsIterator;
78 
79 protected:
81  ~ThinPlateR2LogRSplineKernelTransform() override = default;
82 
83  using GMatrixType = typename Superclass::GMatrixType;
92  void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const override;
93 
96  void ComputeDeformationContribution(const InputPointType & inputPoint,
97  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
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