ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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:
73
79
82
84 itkNewMacro(Self);
85
88
90 using typename Superclass::InterpolatorType;
92
95 using typename Superclass::VelocityFieldType;
96
98 using typename Superclass::ScalarType;
99
101 using typename Superclass::ParametersType;
103 using typename Superclass::FixedParametersType;
106
108 using typename Superclass::DerivativeType;
109
111 static constexpr unsigned int Dimension = VDimension;
112
114 static constexpr unsigned int VelocityFieldDimension = VDimension + 1;
115
116 using VelocityFieldPointType = typename VelocityFieldType::PointType;
117 using VelocityFieldSizeType = typename VelocityFieldType::SizeType;
118 using VelocityFieldSpacingType = typename VelocityFieldType::SpacingType;
119 using VelocityFieldDirectionType = typename VelocityFieldType::DirectionType;
120
122 using TimeVaryingVelocityFieldControlPointLatticePointer = typename VelocityFieldType::Pointer;
123
129
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);
162
164 itkSetMacro(VelocityFieldSpacing, VelocityFieldSpacingType);
165 itkGetConstMacro(VelocityFieldSpacing, VelocityFieldSpacingType);
167
170 itkGetConstMacro(VelocityFieldSize, VelocityFieldSizeType);
172
174 itkSetMacro(VelocityFieldDirection, VelocityFieldDirectionType);
175 itkGetConstMacro(VelocityFieldDirection, VelocityFieldDirectionType);
177
179 itkSetMacro(SplineOrder, unsigned int);
180 itkGetConstMacro(SplineOrder, unsigned int);
182
183protected:
186 void
187 PrintSelf(std::ostream & os, Indent indent) const override;
188
189private:
190 unsigned int m_SplineOrder{};
192
197};
198
199} // end namespace itk
200
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkTimeVaryingBSplineVelocityFieldTransform.hxx"
203#endif
204
205#endif // itkTimeVaryingBSplineVelocityFieldTransform_h
itkSetMacro(InputSpaceName, std::string)
itkOverrideGetNameOfClassMacro(TransformBaseTemplate)
ITK_DISALLOW_COPY_AND_MOVE(TransformBaseTemplate)
VectorInterpolateImageFunction< DisplacementFieldType, ScalarType > InterpolatorType
Point< PointValueType, VImageDimension > PointType
Vector< SpacingValueType, VImageDimension > SpacingType
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
~TimeVaryingBSplineVelocityFieldTransform() override=default
Image< OutputVectorType, VelocityFieldDimension > VelocityFieldType
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)
VelocityFieldTransform< TParametersValueType, VDimension > Superclass
Array< ParametersValueType > DerivativeType
virtual VelocityFieldType * GetModifiableVelocityField()
Image< OutputVectorType, VelocityFieldDimension > VelocityFieldType
OptimizerParameters< FixedParametersValueType > FixedParametersType
IdentifierType NumberOfParametersType
ParametersValueType ScalarType
VectorInterpolateImageFunction< VelocityFieldType, ScalarType > VelocityFieldInterpolatorType
OptimizerParameters< ParametersValueType > ParametersType
Image< OutputVectorType, Dimension > DisplacementFieldType
virtual void SetVelocityField(VelocityFieldType *)
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....