ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkGaussianExponentialDiffeomorphicTransform.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 __itkGaussianExponentialDiffeomorphicTransform_h
19 #define __itkGaussianExponentialDiffeomorphicTransform_h
20 
22 
23 #include "itkGaussianOperator.h"
25 
26 namespace itk
27 {
28 
55 template
56  <class TScalar, unsigned int NDimensions>
58  public ConstantVelocityFieldTransform<TScalar, NDimensions>
59 {
60 public:
66 
69 
71  itkNewMacro( Self );
72 
74  itkStaticConstMacro( ConstantVelocityFieldDimension, unsigned int, NDimensions );
75 
77  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
78 
81  typedef typename Superclass::DerivativeType DerivativeType;
82  typedef typename DerivativeType::ValueType DerivativeValueType;
83 
84  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
85  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
86  typedef typename Superclass::ConstantVelocityFieldType ConstantVelocityFieldType;
87  typedef typename Superclass::ConstantVelocityFieldPointer ConstantVelocityFieldPointer;
88 
89  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
90 
96  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
97 
101  virtual ConstantVelocityFieldPointer GaussianSmoothConstantVelocityField( ConstantVelocityFieldType *, ScalarType );
102 
106  itkSetMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
107  itkGetConstMacro( GaussianSmoothingVarianceForTheConstantVelocityField, ScalarType );
109 
113  itkSetMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
114  itkGetConstMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
116 
117 protected:
120 
124 
128 
130 
131  void PrintSelf( std::ostream &, Indent ) const;
132 
133 private:
134  GaussianExponentialDiffeomorphicTransform( const Self& ); //purposely not implemented
135  void operator=( const Self& ); //purposely not implemented
136 
139 };
140 
141 } // end namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "itkGaussianExponentialDiffeomorphicTransform.hxx"
145 #endif
146 
147 #endif // __itkGaussianExponentialDiffeomorphicTransform_h
148