ITK  6.0.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  * https://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 VDimension = 3>
40 class ITK_TEMPLATE_EXPORT ElasticBodySplineKernelTransform : public KernelTransform<TParametersValueType, VDimension>
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_MOVE(ElasticBodySplineKernelTransform);
44 
48 
51 
53  itkOverrideGetNameOfClassMacro(ElasticBodySplineKernelTransform);
54 
56  itkNewMacro(Self);
57 
59  using typename Superclass::ScalarType;
60 
62  using typename Superclass::ParametersType;
63  using typename Superclass::FixedParametersType;
64 
66  using typename Superclass::JacobianType;
67  using typename Superclass::JacobianPositionType;
69 
71  static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension;
72 
76  itkSetMacro(Alpha, TParametersValueType);
77 
79  itkGetConstMacro(Alpha, TParametersValueType);
80 
81  using typename Superclass::InputPointType;
82  using typename Superclass::OutputPointType;
83  using typename Superclass::InputVectorType;
84  using typename Superclass::OutputVectorType;
87 
88 protected:
90  ~ElasticBodySplineKernelTransform() override = default;
91  void
92  PrintSelf(std::ostream & os, Indent indent) const override;
93 
94  using typename Superclass::GMatrixType;
106  void
107  ComputeG(const InputVectorType & x, GMatrixType & gmatrix) const override;
108 
112  TParametersValueType m_Alpha{};
113 };
114 } // namespace itk
117 #ifndef ITK_MANUAL_INSTANTIATION
118 # include "itkElasticBodySplineKernelTransform.hxx"
119 #endif
120 
121 #endif // itkElasticBodySplineKernelTransform_h
itk::KernelTransform::GMatrixType
vnl_matrix_fixed< TParametersValueType, VDimension, VDimension > GMatrixType
Definition: itkKernelTransform.h:254
itk::ElasticBodySplineKernelTransform
This class defines the elastic body spline (EBS) transformation.
Definition: itkElasticBodySplineKernelTransform.h:40
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkKernelTransform.h
itk::Transform< TParametersValueType, VDimension, VDimension >::ScalarType
ParametersValueType ScalarType
Definition: itkTransform.h:127
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itk::Transform< TParametersValueType, VDimension, VDimension >::JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Transform< TParametersValueType, VDimension, VDimension >::InverseJacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::KernelTransform
Definition: itkKernelTransform.h:61
itk::Array2D
Array2D class representing a 2D array.
Definition: itkArray2D.h:42