ITK  5.2.0
Insight Toolkit
itkGaussianSmoothingOnUpdateDisplacementFieldTransform.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 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_MOVE(GaussianSmoothingOnUpdateDisplacementFieldTransform);
51 
57 
60 
62  itkNewMacro(Self);
63 
66  using DerivativeType = typename Superclass::DerivativeType;
67  using DerivativeValueType = typename DerivativeType::ValueType;
68  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
69  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
71 
73 
78  itkSetMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
79  itkGetConstReferenceMacro(GaussianSmoothingVarianceForTheUpdateField, ScalarType);
81 
86  itkSetMacro(GaussianSmoothingVarianceForTheTotalField, ScalarType);
87  itkGetConstReferenceMacro(GaussianSmoothingVarianceForTheTotalField, ScalarType);
89 
98  void
99  UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
100 
106  GaussianSmoothDisplacementField(DisplacementFieldType *, ScalarType);
107 
108 protected:
111  void
112  PrintSelf(std::ostream & os, Indent indent) const override;
113 
115  typename LightObject::Pointer
116  InternalClone() const override;
117 
122 
129 };
130 
131 } // end namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
135 #endif
136 
137 #endif // itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
itkDisplacementFieldTransform.h
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::m_GaussianSmoothingVarianceForTheUpdateField
ScalarType m_GaussianSmoothingVarianceForTheUpdateField
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:120
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::m_GaussianSmoothingOperator
GaussianSmoothingOperatorType m_GaussianSmoothingOperator
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:128
itk::DisplacementFieldTransform
Provides local/dense/high-dimensionality transformation via a a displacement field.
Definition: itkDisplacementFieldTransform.h:86
itk::DisplacementFieldTransform::DerivativeType
typename Superclass::DerivativeType DerivativeType
Definition: itkDisplacementFieldTransform.h:154
itk::DisplacementFieldTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkDisplacementFieldTransform.h:107
itk::VectorNeighborhoodOperatorImageFilter
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
Definition: itkVectorNeighborhoodOperatorImageFilter.h:58
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the displacement fiel...
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:46
itk::GaussianOperator< ScalarType, Superclass::Dimension >
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::TransformPointer
typename Transform< TParametersValueType, NDimensions, NDimensions >::Pointer TransformPointer
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:72
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::DerivativeValueType
typename DerivativeType::ValueType DerivativeValueType
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:67
itk::Image::PixelType
TPixel PixelType
Definition: itkImage.h:106
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::m_GaussianSmoothingVarianceForTheTotalField
ScalarType m_GaussianSmoothingVarianceForTheTotalField
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:121
itk::GaussianSmoothingOnUpdateDisplacementFieldTransform::DisplacementVectorType
typename DisplacementFieldType::PixelType DisplacementVectorType
Definition: itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h:70
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itkVectorNeighborhoodOperatorImageFilter.h
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::Transform
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
itkGaussianOperator.h
itk::DisplacementFieldTransform::DisplacementFieldPointer
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Definition: itkDisplacementFieldTransform.h:161