ITK  4.13.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:
55 
59 
61  itkNewMacro( Self );
62 
64  typedef typename Superclass::ScalarType ScalarType;
65  typedef typename Superclass::DerivativeType DerivativeType;
66  typedef typename DerivativeType::ValueType DerivativeValueType;
67  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
68  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
70 
72 
77  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
78  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
80 
85  itkSetMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
86  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
88 
97  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) ITK_OVERRIDE;
98 
103  virtual DisplacementFieldPointer GaussianSmoothDisplacementField( DisplacementFieldType *, ScalarType );
104 
105 protected:
107  virtual ~GaussianSmoothingOnUpdateDisplacementFieldTransform() ITK_OVERRIDE;
108  void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
109 
111  virtual typename LightObject::Pointer InternalClone() const ITK_OVERRIDE;
112 
115  ScalarType m_GaussianSmoothingVarianceForTheUpdateField;
116  ScalarType m_GaussianSmoothingVarianceForTheTotalField;
117 
120  typedef GaussianOperator<ScalarType, Superclass::Dimension>
122  typedef VectorNeighborhoodOperatorImageFilter< DisplacementFieldType,
123  DisplacementFieldType >
125  GaussianSmoothingOperatorType m_GaussianSmoothingOperator;
126 
127 private:
128  ITK_DISALLOW_COPY_AND_ASSIGN(GaussianSmoothingOnUpdateDisplacementFieldTransform);
129 
130 };
131 
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
136 #endif
137 
138 #endif // itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
A NeighborhoodOperator whose coefficients are a one dimensional, discrete Gaussian kernel...
Light weight base class for most itk classes.
Provides local/dense/high-dimensionaltiy transformation via a a displacement field.
Transform< TParametersValueType, NDimensions, NDimensions >::Pointer TransformPointer
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the displacement fiel...
DisplacementFieldTransform< TParametersValueType, NDimensions > Superclass
TPixel PixelType
Definition: itkImage.h:89
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
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