ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkConstantVelocityFieldTransform.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 itkConstantVelocityFieldTransform_h
19#define itkConstantVelocityFieldTransform_h
20
22
23namespace itk
24{
25
35template <typename TParametersValueType, unsigned int VDimension>
36class ITK_TEMPLATE_EXPORT ConstantVelocityFieldTransform
37 : public DisplacementFieldTransform<TParametersValueType, VDimension>
38{
39public:
41
47
50
52 itkNewMacro(Self);
53
56
58 using typename Superclass::ScalarType;
59
63 using typename Superclass::ParametersType;
65
68
71
73 using typename Superclass::InputPointType;
74 using typename Superclass::OutputPointType;
75
77 using typename Superclass::InputVectorType;
78 using typename Superclass::OutputVectorType;
79
82
84 using typename Superclass::DerivativeType;
85
87 static constexpr unsigned int ConstantVelocityFieldDimension = VDimension;
88
90 static constexpr unsigned int Dimension = VDimension;
91
95
99
108
110
113
117
122 virtual void
124 itkGetModifiableObjectMacro(ConstantVelocityField, ConstantVelocityFieldType);
126
127 void
129
132 virtual void
134 itkGetModifiableObjectMacro(ConstantVelocityFieldInterpolator, ConstantVelocityFieldInterpolatorType);
136
138 itkGetConstReferenceMacro(ConstantVelocityFieldSetTime, ModifiedTimeType);
139
140 void
141 UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
142
144 bool
145 GetInverse(Self * inverse) const;
146
149 GetInverseTransform() const override;
150
153 virtual void
155
156 // Set/get compute number of exp. integration steps automatically
157 itkSetMacro(CalculateNumberOfIntegrationStepsAutomatically, bool);
158 itkGetConstMacro(CalculateNumberOfIntegrationStepsAutomatically, bool);
159 itkBooleanMacro(CalculateNumberOfIntegrationStepsAutomatically);
160
165 itkSetClampMacro(LowerTimeBound, ScalarType, 0, 1);
166
171 itkGetConstMacro(LowerTimeBound, ScalarType);
172
177 itkSetClampMacro(UpperTimeBound, ScalarType, 0, 1);
178
183 itkGetConstMacro(UpperTimeBound, ScalarType);
184
188 itkSetMacro(NumberOfIntegrationSteps, unsigned int);
189
193 itkGetConstMacro(NumberOfIntegrationSteps, unsigned int);
194
195protected:
198 void
199 PrintSelf(std::ostream & os, Indent indent) const override;
200
202 typename LightObject::Pointer
203 InternalClone() const override;
204
207
209
211
214
218
221
223
224private:
229 virtual void
231};
232
233} // end namespace itk
234
235#ifndef ITK_MANUAL_INSTANTIATION
236# include "itkConstantVelocityFieldTransform.hxx"
237#endif
238
239#endif // itkConstantVelocityFieldTransform_h
itkSetMacro(InputSpaceName, std::string)
itkGetConstReferenceMacro(InputSpaceName, std::string)
itkOverrideGetNameOfClassMacro(TransformBaseTemplate)
ITK_DISALLOW_COPY_AND_MOVE(TransformBaseTemplate)
virtual void SetConstantVelocityFieldInterpolator(ConstantVelocityFieldInterpolatorType *)
~ConstantVelocityFieldTransform() override=default
DisplacementFieldType::Pointer CopyDisplacementField(const DisplacementFieldType *) const
virtual void SetConstantVelocityField(ConstantVelocityFieldType *)
VectorInterpolateImageFunction< ConstantVelocityFieldType, ScalarType > ConstantVelocityFieldInterpolatorType
virtual void SetFixedParametersFromConstantVelocityField() const
typename ConstantVelocityFieldType::SizeType SizeType
ConstantVelocityFieldInterpolatorPointer m_ConstantVelocityFieldInterpolator
typename ConstantVelocityFieldType::DirectionType DirectionType
Image< OutputVectorType, ConstantVelocityFieldDimension > ConstantVelocityFieldType
void SetFixedParameters(const FixedParametersType &) override
typename ConstantVelocityFieldInterpolatorType::Pointer ConstantVelocityFieldInterpolatorPointer
DisplacementFieldTransform< TParametersValueType, VDimension > Superclass
LightObject::Pointer InternalClone() const override
typename ConstantVelocityFieldType::RegionType RegionType
ImageVectorOptimizerParametersHelper< ScalarType, Dimension, ConstantVelocityFieldDimension > OptimizerParametersHelperType
static constexpr unsigned int ConstantVelocityFieldDimension
typename ConstantVelocityFieldType::PixelType PixelType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
typename ConstantVelocityFieldType::IndexType IndexType
void PrintSelf(std::ostream &os, Indent indent) const override
typename ConstantVelocityFieldType::SpacingType SpacingType
typename ConstantVelocityFieldType::Pointer ConstantVelocityFieldPointer
Image< OutputVectorType, Dimension > DisplacementFieldType
typename ConstantVelocityFieldType::PointType PointType
InverseTransformBasePointer GetInverseTransform() const override
bool GetInverse(Self *inverse) const
void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
VariableLengthVector< TParametersValueType > InputVectorPixelType
Array< ParametersValueType > DerivativeType
Point< TParametersValueType, VInputDimension > InputPointType
OptimizerParameters< FixedParametersValueType > FixedParametersType
IdentifierType NumberOfParametersType
TransformBaseTemplateEnums::TransformCategory TransformCategoryEnum
VariableLengthVector< TParametersValueType > OutputVectorPixelType
ParametersValueType ScalarType
TParametersValueType ParametersValueType
OptimizerParameters< ParametersValueType > ParametersType
Image< OutputVectorType, Dimension > DisplacementFieldType
Point< TParametersValueType, VOutputDimension > OutputPointType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Vector< TParametersValueType, VInputDimension > InputVectorType
Vector< TParametersValueType, VOutputDimension > OutputVectorType
Class to hold and manage parameters of type Image<Vector<...>,...>, used in Transforms,...
Templated n-dimensional image class.
Definition itkImage.h:89
Point< PointValueType, VImageDimension > PointType
Vector< SpacingValueType, VImageDimension > SpacingType
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
SmartPointer< Self > Pointer
Implements transparent reference counting.
Base class for all vector image interpolators.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType