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
23namespace itk
24{
39template <typename TParametersValueType = double, unsigned int VDimension = 3>
40class ITK_TEMPLATE_EXPORT ElasticBodySplineKernelTransform : public KernelTransform<TParametersValueType, VDimension>
41{
42public:
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;
68 using 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 typename Superclass::InputPointType;
82 using typename Superclass::OutputPointType;
83 using typename Superclass::InputVectorType;
84 using typename Superclass::OutputVectorType;
85 using typename Superclass::InputCovariantVectorType;
86 using typename Superclass::OutputCovariantVectorType;
87
88protected:
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
This class defines the elastic body spline (EBS) transformation.
void ComputeG(const InputVectorType &x, GMatrixType &gmatrix) const override
~ElasticBodySplineKernelTransform() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
vnl_matrix_fixed< double, VDimension, VDimension > GMatrixType
Light weight base class for most itk classes.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....