ITK  4.9.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;
66  typedef typename DerivativeType::ValueType DerivativeValueType;
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 
104 
105 protected:
107  virtual ~GaussianSmoothingOnUpdateDisplacementFieldTransform();
108  void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
109 
111  virtual typename LightObject::Pointer InternalClone() const ITK_OVERRIDE;
112 
117 
120  typedef GaussianOperator<ScalarType, Superclass::Dimension>
122  typedef VectorNeighborhoodOperatorImageFilter< DisplacementFieldType,
123  DisplacementFieldType >
126 
127 private:
128  GaussianSmoothingOnUpdateDisplacementFieldTransform( const Self& ) ITK_DELETE_FUNCTION;
129  void operator=( const Self& ) ITK_DELETE_FUNCTION;
130 
131 };
132 
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
137 #endif
138 
139 #endif // itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
void PrintSelf(std::ostream &os, Indent indent) const override
A NeighborhoodOperator whose coefficients are a one dimensional, discrete Gaussian kernel...
Light weight base class for most itk classes.
Image< OutputVectorType, Dimension > DisplacementFieldType
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
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
virtual DisplacementFieldPointer GaussianSmoothDisplacementField(DisplacementFieldType *, ScalarType)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
DisplacementFieldType::Pointer DisplacementFieldPointer
virtual LightObject::Pointer InternalClone() const override
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
Templated n-dimensional image class.
Definition: itkImage.h:75