ITK  4.6.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 TScalar, unsigned int NDimensions>
55  public VelocityFieldTransform<TScalar, NDimensions>
56 {
57 public:
63 
66 
68  itkNewMacro( Self );
69 
72 
76 
80 
82  typedef typename VelocityFieldType::Pointer TimeVaryingVelocityFieldPointer;
83 
86 
91 
94 
96 
98 #if ! defined ( ITK_FUTURE_LEGACY_REMOVE )
99  typename VelocityFieldType::Pointer GetTimeVaryingVelocityField()
100  {
101  return this->GetModifiableVelocityField();
102  }
103 #endif
104  typename VelocityFieldType::Pointer GetModifiableTimeVaryingVelocityField()
105  {
106  return this->GetModifiableVelocityField();
107  }
108  typename VelocityFieldType::ConstPointer GetTimeVaryingVelocityField() const
109  {
110  return this->GetVelocityField();
111  }
113 
116  {
117  this->SetVelocityField( field );
118  }
119 
122  virtual void IntegrateVelocityField();
123 
124 protected:
127 
128 private:
129  TimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
130  void operator=( const Self& ); //purposely not implemented
131 };
132 
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 # include "itkTimeVaryingVelocityFieldTransform.hxx"
137 #endif
138 
139 #endif // __itkTimeVaryingVelocityFieldTransform_h
Superclass::InverseTransformBasePointer InverseTransformBasePointer
Transform objects based on integration of a time-varying velocity field.
VelocityFieldTransform< TScalar, NDimensions > Superclass
Light weight base class for most itk classes.
VelocityFieldType::ConstPointer GetTimeVaryingVelocityField() const
Superclass::NumberOfParametersType NumberOfParametersType
virtual void SetVelocityField(VelocityFieldType *)
Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType
virtual void SetTimeVaryingVelocityField(VelocityFieldType *field)
Transform< TScalar, NDimensions, NDimensions >::Pointer TransformPointer
virtual const VelocityFieldType * GetVelocityField() const
Image< OutputVectorType, VelocityFieldDimension > VelocityFieldType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
VectorInterpolateImageFunction< VelocityFieldType, ScalarType > VelocityFieldInterpolatorType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::DerivativeType DerivativeType
Superclass::ParametersType ParametersType
Superclass::InverseTransformBasePointer InverseTransformBasePointer
VectorInterpolateImageFunction< DisplacementFieldType, ScalarType > InterpolatorType
virtual VelocityFieldType * GetModifiableVelocityField()
Superclass::DisplacementFieldType DisplacementFieldType
Provides local/dense/high-dimensionality transformation via a a velocity field.