ITK  4.2.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 #include "itkGaussianOperator.h"
22 
24 
25 namespace itk
26 {
27 
44 template
45  <class TScalar, unsigned int NDimensions>
47  public DisplacementFieldTransform<TScalar, 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 
73 
78  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
79  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
81 
86  itkSetMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
87  itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
89 
98  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
99 
104  virtual DisplacementFieldPointer GaussianSmoothDisplacementField( DisplacementFieldType *, ScalarType );
105 
106 protected:
109  void PrintSelf( std::ostream& os, Indent indent ) const;
110 
112  virtual typename LightObject::Pointer InternalClone() const;
113 
118 
127 
128 private:
129  GaussianSmoothingOnUpdateDisplacementFieldTransform( const Self& ); //purposely not implemented
130  void operator=( const Self& ); //purposely not implemented
131 
132 };
133 
134 } // end namespace itk
135 
136 #if ITK_TEMPLATE_EXPLICIT
137 # include "Templates/itkGaussianSmoothingOnUpdateDisplacementFieldTransform+-.h"
138 #endif
139 
140 #if ITK_TEMPLATE_TXX
141 # include "itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx"
142 #endif
143 
144 #endif // __itkGaussianSmoothingOnUpdateDisplacementFieldTransform_h
145