ITK  4.13.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<typename TParametersValueType, unsigned int NDimensions>
54 class ITK_TEMPLATE_EXPORT TimeVaryingVelocityFieldTransform :
55  public VelocityFieldTransform<TParametersValueType, 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::FixedParametersType FixedParametersType;
92  typedef typename Superclass::NumberOfParametersType NumberOfParametersType;
93 
95  typedef typename Superclass::DerivativeType DerivativeType;
96 
98 
100 #if ! defined ( ITK_FUTURE_LEGACY_REMOVE )
102  {
103  return this->GetModifiableVelocityField();
104  }
105 #endif
107  {
108  return this->GetModifiableVelocityField();
109  }
111  {
112  return this->GetVelocityField();
113  }
115 
118  {
119  this->SetVelocityField( field );
120  }
121 
124  virtual void IntegrateVelocityField() ITK_OVERRIDE;
125 
126 protected:
128  virtual ~TimeVaryingVelocityFieldTransform() ITK_OVERRIDE;
129 
130 private:
131  ITK_DISALLOW_COPY_AND_ASSIGN(TimeVaryingVelocityFieldTransform);
132 };
133 
134 } // end namespace itk
135 
136 #ifndef ITK_MANUAL_INSTANTIATION
137 # include "itkTimeVaryingVelocityFieldTransform.hxx"
138 #endif
139 
140 #endif // itkTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Superclass::InverseTransformBasePointer InverseTransformBasePointer
Light weight base class for most itk classes.
VelocityFieldTransform< TParametersValueType, NDimensions > Superclass
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType
virtual void SetTimeVaryingVelocityField(VelocityFieldType *field)
Superclass::NumberOfParametersType NumberOfParametersType
Transform< TParametersValueType, NDimensions, NDimensions >::Pointer TransformPointer
TParametersValueType ValueType
const VelocityFieldType * GetTimeVaryingVelocityField() const
Provides local/dense/high-dimensionality transformation via a a velocity field.