ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingBSplineVelocityFieldTransform.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 __itkTimeVaryingBSplineVelocityFieldTransform_h
19 #define __itkTimeVaryingBSplineVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
62 template<class TScalar, unsigned int NDimensions>
64  public TimeVaryingVelocityFieldTransform<TScalar, NDimensions>
65 {
66 public:
67 
73 
76 
78  itkSimpleNewMacro( Self );
79 
81  typedef typename Superclass::InverseTransformBasePointer InverseTransformBasePointer;
82 
84  typedef typename Superclass::ScalarType ScalarType;
85 
87  typedef typename Superclass::ParametersType ParametersType;
89  typedef typename Superclass::NumberOfParametersType NumberOfParametersType;
90 
92  typedef typename Superclass::JacobianType JacobianType;
93 
95  typedef typename Superclass::InputPointType InputPointType;
96  typedef typename Superclass::OutputPointType OutputPointType;
97 
99  typedef typename Superclass::InputVectorType InputVectorType;
100  typedef typename Superclass::OutputVectorType OutputVectorType;
101 
103  typedef typename Superclass::DerivativeType DerivativeType;
104 
106  itkStaticConstMacro( Dimension, unsigned int, NDimensions );
107 
109  itkStaticConstMacro( TimeVaryingVelocityFieldDimension, unsigned int, NDimensions+1 );
110 
117 
122 
123  typedef typename Superclass::DisplacementFieldType DisplacementFieldControlPointLatticeType;
124  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
130 
132  itkGetObjectMacro( TimeVaryingVelocityFieldControlPointLattice, TimeVaryingVelocityFieldControlPointLatticeType );
133 
135  virtual void SetTimeVaryingVelocityFieldControlPointLattice( TimeVaryingVelocityFieldControlPointLatticeType * );
136 
138  virtual void SetFixedParameters( const ParametersType & );
139 
147  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
148 
150  virtual void IntegrateVelocityField();
151 
153  bool GetInverse( Self *inverse ) const;
154 
156  virtual InverseTransformBasePointer GetInverseTransform() const;
157 
159  itkSetMacro( SplineOrder, unsigned int );
160  itkGetConstMacro( SplineOrder, unsigned int );
162 
164  itkSetMacro( TemporalPeriodicity, bool );
165  itkGetConstMacro( TemporalPeriodicity, bool );
166  itkBooleanMacro( TemporalPeriodicity );
168 
170  itkSetMacro( VelocityFieldOrigin, VelocityFieldPointType );
171  itkGetConstMacro( VelocityFieldOrigin, VelocityFieldPointType );
173 
175  itkSetMacro( VelocityFieldSpacing, VelocityFieldSpacingType );
176  itkGetConstMacro( VelocityFieldSpacing, VelocityFieldSpacingType );
178 
180  itkSetMacro( VelocityFieldSize, VelocityFieldSizeType );
181  itkGetConstMacro( VelocityFieldSize, VelocityFieldSizeType );
183 
185  itkSetMacro( VelocityFieldDirection, VelocityFieldDirectionType );
186  itkGetConstMacro( VelocityFieldDirection, VelocityFieldDirectionType );
188 
189 protected:
192  void PrintSelf( std::ostream& os, Indent indent ) const;
193 
194 private:
195  TimeVaryingBSplineVelocityFieldTransform( const Self& ); //purposely not implementen
196  void operator=( const Self& ); //purposely not implemented
197 
200 
201  unsigned int m_SplineOrder;
203 
208 };
209 
210 } // end namespace itk
211 
212 #if ITK_TEMPLATE_EXPLICIT
213 # include "Templates/itkTimeVaryingBSplineVelocityFieldTransform+-.h"
214 #endif
215 
216 #if ITK_TEMPLATE_TXX
217 # include "itkTimeVaryingBSplineVelocityFieldTransform.hxx"
218 #endif
219 
220 #endif // __itkTimeVaryingBSplineVelocityFieldTransform_h
221