ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGaussianExponentialDiffeomorphicTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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>
56 class ITK_TEMPLATE_EXPORT GaussianExponentialDiffeomorphicTransform :
57  public ConstantVelocityFieldTransform<TParametersValueType, NDimensions>
58 {
59 public:
60  ITK_DISALLOW_COPY_AND_ASSIGN(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 UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) override;
98 
102  virtual ConstantVelocityFieldPointer GaussianSmoothConstantVelocityField( ConstantVelocityFieldType *, ScalarType );
103 
107  itkSetMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
108  itkGetConstMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
110 
114  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
115  itkGetConstMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
117 
118 protected:
120  ~GaussianExponentialDiffeomorphicTransform() override = default;
121 
125 
128 
130 
131  void PrintSelf( std::ostream &, Indent ) const override;
132 
133 private:
136 };
137 
138 } // end namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 # include "itkGaussianExponentialDiffeomorphicTransform.hxx"
142 #endif
143 
144 #endif // itkGaussianExponentialDiffeomorphicTransform_h
Provides local/dense/high-dimensionality transformation via a a constant velocity field...
typename Superclass::DisplacementFieldType DisplacementFieldType
Light weight base class for most itk classes.
Exponential transform using a Gaussian smoothing kernel.
typename Superclass::DerivativeType DerivativeType
typename ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
Templated n-dimensional image class.
Definition: itkImage.h:75