ITK  5.2.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  * 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 itkGaussianExponentialDiffeomorphicTransform_h
19 #define itkGaussianExponentialDiffeomorphicTransform_h
20 
22 
23 #include "itkGaussianOperator.h"
25 
26 namespace itk
27 {
28 
55 template <typename TParametersValueType, unsigned int NDimensions>
57  : public ConstantVelocityFieldTransform<TParametersValueType, NDimensions>
58 {
59 public:
60  ITK_DISALLOW_COPY_AND_MOVE(GaussianExponentialDiffeomorphicTransform);
61 
67 
70 
72  itkNewMacro(Self);
73 
75  static constexpr unsigned int ConstantVelocityFieldDimension = NDimensions;
76 
78  static constexpr unsigned int Dimension = NDimensions;
79 
82  using DerivativeType = typename Superclass::DerivativeType;
83  using DerivativeValueType = typename DerivativeType::ValueType;
84 
85  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
86  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
87  using ConstantVelocityFieldType = typename Superclass::ConstantVelocityFieldType;
88  using ConstantVelocityFieldPointer = typename Superclass::ConstantVelocityFieldPointer;
89 
90  using DisplacementVectorType = typename DisplacementFieldType::PixelType;
91 
97  void
98  UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
99 
104  GaussianSmoothConstantVelocityField(ConstantVelocityFieldType *, ScalarType);
105 
109  itkSetMacro(GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType);
110  itkGetConstMacro(GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType);
112 
116  itkSetMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
117  itkGetConstMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
119 
120 protected:
122  ~GaussianExponentialDiffeomorphicTransform() override = default;
123 
127 
130 
132 
133  void
134  PrintSelf(std::ostream &, Indent) const override;
135 
136 private:
139 };
140 
141 } // end namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "itkGaussianExponentialDiffeomorphicTransform.hxx"
145 #endif
146 
147 #endif // itkGaussianExponentialDiffeomorphicTransform_h
itk::GaussianExponentialDiffeomorphicTransform
Exponential transform using a Gaussian smoothing kernel.
Definition: itkGaussianExponentialDiffeomorphicTransform.h:56
itk::ConstantVelocityFieldTransform::ConstantVelocityFieldPointer
typename ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
Definition: itkConstantVelocityFieldTransform.h:98
itk::GaussianExponentialDiffeomorphicTransform::DerivativeValueType
typename DerivativeType::ValueType DerivativeValueType
Definition: itkGaussianExponentialDiffeomorphicTransform.h:83
itk::ConstantVelocityFieldTransform::DerivativeType
typename Superclass::DerivativeType DerivativeType
Definition: itkConstantVelocityFieldTransform.h:84
itk::GaussianExponentialDiffeomorphicTransform::m_GaussianSmoothingVarianceForTheUpdateField
ScalarType m_GaussianSmoothingVarianceForTheUpdateField
Definition: itkGaussianExponentialDiffeomorphicTransform.h:137
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::VectorNeighborhoodOperatorImageFilter
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
Definition: itkVectorNeighborhoodOperatorImageFilter.h:58
itkConstantVelocityFieldTransform.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::GaussianExponentialDiffeomorphicTransform::m_GaussianSmoothingOperator
GaussianSmoothingOperatorType m_GaussianSmoothingOperator
Definition: itkGaussianExponentialDiffeomorphicTransform.h:131
itk::GaussianExponentialDiffeomorphicTransform::DisplacementVectorType
typename DisplacementFieldType::PixelType DisplacementVectorType
Definition: itkGaussianExponentialDiffeomorphicTransform.h:90
itk::GaussianExponentialDiffeomorphicTransform::m_GaussianSmoothingVarianceForTheConstantVelocityField
ScalarType m_GaussianSmoothingVarianceForTheConstantVelocityField
Definition: itkGaussianExponentialDiffeomorphicTransform.h:138
itk::GaussianOperator< ScalarType, NDimensions >
itk::ConstantVelocityFieldTransform::DisplacementFieldType
typename Superclass::DisplacementFieldType DisplacementFieldType
Definition: itkConstantVelocityFieldTransform.h:93
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ConstantVelocityFieldTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkConstantVelocityFieldTransform.h:58
itk::ConstantVelocityFieldTransform::DisplacementFieldPointer
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Definition: itkConstantVelocityFieldTransform.h:94
itkVectorNeighborhoodOperatorImageFilter.h
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itkGaussianOperator.h
itk::GTest::TypedefsAndConstructors::Dimension2::Dimension
constexpr unsigned int Dimension
Definition: itkGTestTypedefsAndConstructors.h:44
itk::ConstantVelocityFieldTransform
Provides local/dense/high-dimensionality transformation via a a constant velocity field.
Definition: itkConstantVelocityFieldTransform.h:36