ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingVelocityFieldTransform.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 __itkTimeVaryingVelocityFieldTransform_h
19 #define __itkTimeVaryingVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
53 template<class TScalar, unsigned int NDimensions>
55  public VelocityFieldTransform<TScalar, NDimensions>
56 {
57 public:
63 
66 
68  itkNewMacro( Self );
69 
71  typedef typename Superclass::InverseTransformBasePointer InverseTransformBasePointer;
72 
74  typedef typename Superclass::InterpolatorType InterpolatorType;
75  typedef typename Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType;
76 
78  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
79  typedef typename Superclass::VelocityFieldType VelocityFieldType;
80 
82  typedef typename VelocityFieldType::Pointer TimeVaryingVelocityFieldPointer;
83 
85  typedef typename Superclass::ScalarType ScalarType;
86 
88  typedef typename Superclass::ParametersType ParametersType;
90  typedef typename Superclass::NumberOfParametersType NumberOfParametersType;
91 
93  typedef typename Superclass::DerivativeType DerivativeType;
94 
96 
98  typename VelocityFieldType::Pointer GetTimeVaryingVelocityField()
99  {
100  return this->GetVelocityField();
101  }
102 
104  virtual void SetTimeVaryingVelocityField( VelocityFieldType * field )
105  {
106  this->SetVelocityField( field );
107  }
108 
111  virtual void IntegrateVelocityField();
112 
113 protected:
116 
117 private:
118  TimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
119  void operator=( const Self& ); //purposely not implemented
120 };
121 
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 # include "itkTimeVaryingVelocityFieldTransform.hxx"
126 #endif
127 
128 #endif // __itkTimeVaryingVelocityFieldTransform_h
129