ITK  4.6.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
46  <class TScalar, unsigned int NDimensions>
48  public DisplacementFieldTransform<TScalar, NDimensions>
49 {
50 public:
56 
60 
62  itkNewMacro( Self );
63 
65  typedef typename Superclass::ScalarType ScalarType;
67  typedef typename DerivativeType::ValueType DerivativeValueType;
71 
74 
79  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
80  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
82 
87  itkSetMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
88  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
90 
99  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
100 
106 
107 protected:
110  void PrintSelf( std::ostream& os, Indent indent ) const;
111 
113  virtual typename LightObject::Pointer InternalClone() const;
114 
119 
128 
129 private:
130  GaussianSmoothingOnUpdateDisplacementFieldTransform( const Self& ); //purposely not implemented
131  void operator=( const Self& ); //purposely not implemented
132 
133 };
134 
135 } // end namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
139 #endif
140 
141 #endif // __itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
virtual DisplacementFieldPointer GaussianSmoothDisplacementField(DisplacementFieldType *, ScalarType)
Light weight base class for most itk classes.
Provides local/dense/high-dimensionaltiy transformation via a a displacement field.
Image< OutputVectorType, Dimension > DisplacementFieldType
DisplacementFieldType::Pointer DisplacementFieldPointer
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the displacement fiel...
VectorNeighborhoodOperatorImageFilter< DisplacementFieldType, DisplacementFieldType > GaussianSmoothingSmootherType
TPixel PixelType
Definition: itkImage.h:89
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0)
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
virtual LightObject::Pointer InternalClone() const
void PrintSelf(std::ostream &os, Indent indent) const
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