ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGaussianSmoothingOnUpdateDisplacementFieldTransform.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 itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
19 #define itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
20 
22 
23 #include "itkGaussianOperator.h"
25 
26 namespace itk
27 {
28 
45 template<typename TParametersValueType, unsigned int NDimensions>
47  public DisplacementFieldTransform<TParametersValueType, NDimensions>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(GaussianSmoothingOnUpdateDisplacementFieldTransform);
51 
57 
61 
63  itkNewMacro( Self );
64 
67  using DerivativeType = typename Superclass::DerivativeType;
68  using DerivativeValueType = typename DerivativeType::ValueType;
69  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
70  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
72 
74 
79  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
80  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
82 
87  itkSetMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
88  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
90 
99  void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) override;
100 
105  virtual DisplacementFieldPointer GaussianSmoothDisplacementField( DisplacementFieldType *, ScalarType );
106 
107 protected:
110  void PrintSelf( std::ostream& os, Indent indent ) const override;
111 
113  typename LightObject::Pointer InternalClone() const override;
114 
119 
127 };
128 
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
133 #endif
134 
135 #endif // itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
TPixel PixelType
Definition: itkImage.h:95
Light weight base class for most itk classes.
Provides local/dense/high-dimensionaltiy transformation via a a displacement field.
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the displacement fiel...
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
typename Superclass::DerivativeType DerivativeType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::ScalarType ScalarType
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
Templated n-dimensional image class.
Definition: itkImage.h:75
typename Transform< TParametersValueType, NDimensions, NDimensions >::Pointer TransformPointer