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