ITK  5.0.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:
58  ITK_DISALLOW_COPY_AND_ASSIGN(TimeVaryingVelocityFieldTransform);
59 
65 
68 
70  itkNewMacro( Self );
71 
73  using InverseTransformBasePointer = typename Superclass::InverseTransformBasePointer;
74 
76  using InterpolatorType = typename Superclass::InterpolatorType;
77  using VelocityFieldIntegratorType = typename Superclass::VelocityFieldInterpolatorType;
78 
80  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
81  using VelocityFieldType = typename Superclass::VelocityFieldType;
82 
84  using TimeVaryingVelocityFieldPointer = typename VelocityFieldType::Pointer;
85 
87  using ScalarType = typename Superclass::ScalarType;
88 
90  using ParametersType = typename Superclass::ParametersType;
92  using FixedParametersType = typename Superclass::FixedParametersType;
94  using NumberOfParametersType = typename Superclass::NumberOfParametersType;
95 
97  using DerivativeType = typename Superclass::DerivativeType;
98 
100 
102 #if ! defined ( ITK_LEGACY_REMOVE )
103  VelocityFieldType * GetTimeVaryingVelocityField()
104  {
105  return this->GetModifiableVelocityField();
106  }
107 #endif
109  {
110  return this->GetModifiableVelocityField();
111  }
113  {
114  return this->GetVelocityField();
115  }
117 
120  {
121  this->SetVelocityField( field );
122  }
123 
126  void IntegrateVelocityField() override;
127 
128 protected:
130  ~TimeVaryingVelocityFieldTransform() override = default;
131 };
132 
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 # include "itkTimeVaryingVelocityFieldTransform.hxx"
137 #endif
138 
139 #endif // itkTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Light weight base class for most itk classes.
typename Superclass::InverseTransformBasePointer InverseTransformBasePointer
typename VelocityFieldType::Pointer TimeVaryingVelocityFieldPointer
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
Class to hold and manage different parameter types used during optimization.
typename Superclass::VelocityFieldType VelocityFieldType
typename Transform< TParametersValueType, NDimensions, NDimensions >::Pointer TransformPointer
typename Superclass::DerivativeType DerivativeType
virtual void SetTimeVaryingVelocityField(VelocityFieldType *field)
TParametersValueType ValueType
IdentifierType NumberOfParametersType
Base class for all vector image interpolaters.
const VelocityFieldType * GetTimeVaryingVelocityField() const
typename Superclass::ScalarType ScalarType
Templated n-dimensional image class.
Definition: itkImage.h:75
Provides local/dense/high-dimensionality transformation via a a velocity field.
typename Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType
TParametersValueType ParametersValueType