ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkBSplineExponentialDiffeomorphicTransform.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 __itkBSplineExponentialDiffeomorphicTransform_h
19 #define __itkBSplineExponentialDiffeomorphicTransform_h
20 
23 #include "itkPointSet.h"
24 
25 namespace itk
26 {
27 
55 template<class TScalar, unsigned int NDimensions>
57  public ConstantVelocityFieldTransform<TScalar, NDimensions>
58 {
59 public:
65 
68 
70  itkNewMacro( Self );
71 
73  itkStaticConstMacro( ConstantVelocityFieldDimension, unsigned int, NDimensions );
74 
76  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
77 
79  typedef typename Superclass::ScalarType ScalarType;
80  typedef typename Superclass::DerivativeType DerivativeType;
81  typedef typename DerivativeType::ValueType DerivativeValueType;
82 
83  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
84  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
85  typedef typename Superclass::ConstantVelocityFieldType ConstantVelocityFieldType;
86  typedef typename Superclass::ConstantVelocityFieldPointer ConstantVelocityFieldPointer;
87 
88  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
89 
95  typedef unsigned int SplineOrderType;
101 
107  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
108 
112  virtual ConstantVelocityFieldPointer BSplineSmoothConstantVelocityField( const ConstantVelocityFieldType *, const ArrayType & );
113 
117  itkSetMacro( SplineOrder, SplineOrderType );
118  itkGetConstMacro( SplineOrder, SplineOrderType );
120 
128  itkSetMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
129  itkGetConstMacro( NumberOfControlPointsForTheConstantVelocityField, ArrayType );
131 
139  itkSetMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
140  itkGetConstMacro( NumberOfControlPointsForTheUpdateField, ArrayType );
142 
149  void SetMeshSizeForTheConstantVelocityField( const ArrayType & );
150 
157  void SetMeshSizeForTheUpdateField( const ArrayType & );
158 
159 protected:
162 
163  void PrintSelf( std::ostream &, Indent ) const;
164 
165 private:
166  BSplineExponentialDiffeomorphicTransform( const Self& ); //purposely not implemented
167  void operator=( const Self& ); //purposely not implemented
168 
171 
173 };
174 
175 } // end namespace itk
176 
177 #ifndef ITK_MANUAL_INSTANTIATION
178 # include "itkBSplineExponentialDiffeomorphicTransform.hxx"
179 #endif
180 
181 #endif // __itkBSplineExponentialDiffeomorphicTransform_h
182