ITK  6.0.0
Insight Toolkit
itkGaussianExponentialDiffeomorphicTransform.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 itkGaussianExponentialDiffeomorphicTransform_h
19#define itkGaussianExponentialDiffeomorphicTransform_h
20
22
23#include "itkGaussianOperator.h"
25
26namespace itk
27{
28
55template <typename TParametersValueType, unsigned int VDimension>
57 : public ConstantVelocityFieldTransform<TParametersValueType, VDimension>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(GaussianExponentialDiffeomorphicTransform);
61
67
69 itkOverrideGetNameOfClassMacro(GaussianExponentialDiffeomorphicTransform);
70
72 itkNewMacro(Self);
73
75 static constexpr unsigned int ConstantVelocityFieldDimension = VDimension;
76
78 static constexpr unsigned int Dimension = VDimension;
79
81 using typename Superclass::ScalarType;
82 using typename Superclass::DerivativeType;
84
85 using typename Superclass::DisplacementFieldType;
86 using typename Superclass::DisplacementFieldPointer;
87 using typename Superclass::ConstantVelocityFieldType;
88 using typename Superclass::ConstantVelocityFieldPointer;
89
91
97 void
98 UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
99
105
109 itkSetMacro(GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType);
110 itkGetConstMacro(GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType);
116 itkSetMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
117 itkGetConstMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
120protected:
123
127
130
131 GaussianSmoothingOperatorType m_GaussianSmoothingOperator{};
132
133 void
134 PrintSelf(std::ostream &, Indent) const override;
135
136private:
137 ScalarType m_GaussianSmoothingVarianceForTheUpdateField{};
138 ScalarType m_GaussianSmoothingVarianceForTheConstantVelocityField{};
139};
140
141} // end namespace itk
142
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkGaussianExponentialDiffeomorphicTransform.hxx"
145#endif
146
147#endif // itkGaussianExponentialDiffeomorphicTransform_h
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Array class with size defined at construction time.
Definition: itkArray.h:48
TValue ValueType
Definition: itkArray.h:52
Provides local/dense/high-dimensionality transformation via a a constant velocity field.
typename ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
Exponential transform using a Gaussian smoothing kernel.
~GaussianExponentialDiffeomorphicTransform() override=default
void PrintSelf(std::ostream &, Indent) const override
void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
virtual ConstantVelocityFieldPointer GaussianSmoothConstantVelocityField(ConstantVelocityFieldType *, ScalarType)
Templated n-dimensional image class.
Definition: itkImage.h:89
TPixel PixelType
Definition: itkImage.h:108
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....