ITK  6.0.0
Insight Toolkit
itkTimeVaryingBSplineVelocityFieldTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
23namespace itk
24{
25
67template <typename TParametersValueType, unsigned int VDimension>
69 : public VelocityFieldTransform<TParametersValueType, VDimension>
70{
71public:
72 ITK_DISALLOW_COPY_AND_MOVE(TimeVaryingBSplineVelocityFieldTransform);
73
79
81 itkOverrideGetNameOfClassMacro(TimeVaryingBSplineVelocityFieldTransform);
82
84 itkNewMacro(Self);
85
87 using typename Superclass::InverseTransformBasePointer;
88
90 using typename Superclass::InterpolatorType;
91 using VelocityFieldIntegratorType = typename Superclass::VelocityFieldInterpolatorType;
92
94 using typename Superclass::DisplacementFieldType;
95 using typename Superclass::VelocityFieldType;
96
98 using typename Superclass::ScalarType;
99
101 using typename Superclass::ParametersType;
102 using ParametersValueType = typename ParametersType::ValueType;
103 using typename Superclass::FixedParametersType;
104 using FixedParametersValueType = typename FixedParametersType::ValueType;
105 using typename Superclass::NumberOfParametersType;
106
108 using typename Superclass::DerivativeType;
109
111 static constexpr unsigned int Dimension = VDimension;
112
114 static constexpr unsigned int VelocityFieldDimension = VDimension + 1;
115
120
123
129
133 {
134 return this->GetModifiableVelocityField();
135 }
136
138 virtual void
140 {
141 this->SetVelocityField(fieldLattice);
142 }
143
151 void
152 UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
153
155 void
157
159 itkSetMacro(VelocityFieldOrigin, VelocityFieldPointType);
160 itkGetConstMacro(VelocityFieldOrigin, VelocityFieldPointType);
164 itkSetMacro(VelocityFieldSpacing, VelocityFieldSpacingType);
165 itkGetConstMacro(VelocityFieldSpacing, VelocityFieldSpacingType);
169 itkSetMacro(VelocityFieldSize, VelocityFieldSizeType);
170 itkGetConstMacro(VelocityFieldSize, VelocityFieldSizeType);
174 itkSetMacro(VelocityFieldDirection, VelocityFieldDirectionType);
175 itkGetConstMacro(VelocityFieldDirection, VelocityFieldDirectionType);
179 itkSetMacro(SplineOrder, unsigned int);
180 itkGetConstMacro(SplineOrder, unsigned int);
183protected:
186 void
187 PrintSelf(std::ostream & os, Indent indent) const override;
188
189private:
190 unsigned int m_SplineOrder{};
191 bool m_TemporalPeriodicity{};
192
193 VelocityFieldPointType m_VelocityFieldOrigin{};
194 VelocityFieldSpacingType m_VelocityFieldSpacing{};
195 VelocityFieldDirectionType m_VelocityFieldDirection{};
196 VelocityFieldSizeType m_VelocityFieldSize{};
197};
198
199} // end namespace itk
200
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkTimeVaryingBSplineVelocityFieldTransform.hxx"
203#endif
204
205#endif // itkTimeVaryingBSplineVelocityFieldTransform_h
TParametersValueType ParametersValueType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Array class with size defined at construction time.
Definition: itkArray.h:48
Templated n-dimensional image class.
Definition: itkImage.h:89
TPixel PixelType
Definition: itkImage.h:108
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Integrate a time-varying velocity field represented by a B-spline control point lattice.
void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
~TimeVaryingBSplineVelocityFieldTransform() override=default
typename VelocityFieldType::Pointer TimeVaryingVelocityFieldControlPointLatticePointer
typename DisplacementFieldType::SpacingType DisplacementFieldSpacingType
void PrintSelf(std::ostream &os, Indent indent) const override
typename Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType
typename DisplacementFieldType::DirectionType DisplacementFieldDirectionType
virtual void SetTimeVaryingVelocityFieldControlPointLattice(VelocityFieldType *fieldLattice)
Provides local/dense/high-dimensionality transformation via a a velocity field.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....