ITK  4.13.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:
65 
68 
70  itkNewMacro( Self );
71 
73  itkStaticConstMacro( ConstantVelocityFieldDimension, unsigned int, NDimensions );
74 
76  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
77 
80  typedef typename Superclass::DerivativeType DerivativeType;
81  typedef typename DerivativeType::ValueType DerivativeValueType;
82 
83  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
84  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
85  typedef typename Superclass::ConstantVelocityFieldType ConstantVelocityFieldType;
86  typedef typename Superclass::ConstantVelocityFieldPointer ConstantVelocityFieldPointer;
87 
88  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
89 
95  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) ITK_OVERRIDE;
96 
100  virtual ConstantVelocityFieldPointer GaussianSmoothConstantVelocityField( ConstantVelocityFieldType *, ScalarType );
101 
105  itkSetMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
106  itkGetConstMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
108 
112  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
113  itkGetConstMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
115 
116 protected:
118  virtual ~GaussianExponentialDiffeomorphicTransform() ITK_OVERRIDE;
119 
122  typedef GaussianOperator<ScalarType, NDimensions> GaussianSmoothingOperatorType;
123 
125  <ConstantVelocityFieldType, ConstantVelocityFieldType>
127 
128  GaussianSmoothingOperatorType m_GaussianSmoothingOperator;
129 
130  void PrintSelf( std::ostream &, Indent ) const ITK_OVERRIDE;
131 
132 private:
133  ITK_DISALLOW_COPY_AND_ASSIGN(GaussianExponentialDiffeomorphicTransform);
134 
135  ScalarType m_GaussianSmoothingVarianceForTheUpdateField;
136  ScalarType m_GaussianSmoothingVarianceForTheConstantVelocityField;
137 };
138 
139 } // end namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 # include "itkGaussianExponentialDiffeomorphicTransform.hxx"
143 #endif
144 
145 #endif // itkGaussianExponentialDiffeomorphicTransform_h
Provides local/dense/high-dimensionality transformation via a a constant velocity field...
A NeighborhoodOperator whose coefficients are a one dimensional, discrete Gaussian kernel...
Light weight base class for most itk classes.
Exponential transform using a Gaussian smoothing kernel.
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
ConstantVelocityFieldTransform< TParametersValueType, NDimensions > Superclass