ITK  4.4.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;
66  typedef typename Superclass::DerivativeType DerivativeType;
67  typedef typename DerivativeType::ValueType DerivativeValueType;
68  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
69  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
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 
105  virtual DisplacementFieldPointer GaussianSmoothDisplacementField( DisplacementFieldType *, ScalarType );
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
142