ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkElasticBodySplineKernelTransform.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 itkElasticBodySplineKernelTransform_h
19 #define itkElasticBodySplineKernelTransform_h
20 
21 #include "itkKernelTransform.h"
22 
23 namespace itk
24 {
39 template<typename TParametersValueType=double,
40  unsigned int NDimensions=3>
41 class ITK_TEMPLATE_EXPORT ElasticBodySplineKernelTransform:
42  public KernelTransform<TParametersValueType, NDimensions>
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_ASSIGN(ElasticBodySplineKernelTransform);
46 
49  using Superclass = KernelTransform<TParametersValueType,
50  NDimensions>;
51 
54 
57 
59  itkNewMacro(Self);
60 
62  using ScalarType = typename Superclass::ScalarType;
63 
65  using ParametersType = typename Superclass::ParametersType;
66  using FixedParametersType = typename Superclass::FixedParametersType;
67 
69  using JacobianType = typename Superclass::JacobianType;
70  using JacobianPositionType = typename Superclass::JacobianPositionType;
71  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
72 
74  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
75 
79  itkSetMacro(Alpha, TParametersValueType);
80 
82  itkGetConstMacro(Alpha, TParametersValueType);
83 
84  using InputPointType = typename Superclass::InputPointType;
85  using OutputPointType = typename Superclass::OutputPointType;
86  using InputVectorType = typename Superclass::InputVectorType;
87  using OutputVectorType = typename Superclass::OutputVectorType;
88  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
89  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
90 
91 protected:
93  ~ElasticBodySplineKernelTransform() override = default;
94  void PrintSelf(std::ostream & os, Indent indent) const override;
95 
96  using GMatrixType = typename Superclass::GMatrixType;
108  void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const override;
109 
113  TParametersValueType m_Alpha;
114 };
115 } // namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkElasticBodySplineKernelTransform.hxx"
120 #endif
121 
122 #endif // itkElasticBodySplineKernelTransform_h
typename Superclass::OutputPointType OutputPointType
Light weight base class for most itk classes.
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::FixedParametersType FixedParametersType
This class defines the elastic body spline (EBS) transformation.
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::InputVectorType InputVectorType
typename Superclass::ParametersType ParametersType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OutputVectorType OutputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::InputPointType InputPointType