ITK  6.0.0
Insight Toolkit
itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.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 itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
19#define itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
20
22
23namespace itk
24{
25
38template <typename TParametersValueType, unsigned int VDimension>
40 : public TimeVaryingVelocityFieldTransform<TParametersValueType, VDimension>
41{
42public:
44
50
53
55 itkNewMacro(Self);
56
58 static constexpr unsigned int TimeVaryingVelocityFieldDimension = VDimension + 1;
59
61 using typename Superclass::ScalarType;
62 using typename Superclass::DerivativeType;
64 using typename Superclass::VelocityFieldType;
65
66 using typename Superclass::TimeVaryingVelocityFieldType;
67 using typename Superclass::TimeVaryingVelocityFieldPointer;
68
70 using DisplacementVectorValueType = typename DisplacementVectorType::ValueType;
71
72
77 itkSetMacro(GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType);
78 itkGetConstReferenceMacro(GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType);
85 itkSetMacro(GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType);
86 itkGetConstReferenceMacro(GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType);
93 itkSetMacro(GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType);
94 itkGetConstReferenceMacro(GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType);
101 itkSetMacro(GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType);
102 itkGetConstReferenceMacro(GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType);
113 void
114 UpdateTransformParameters(const DerivativeType & update, ScalarType factor = 1.0) override;
115
122
123protected:
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
132 ModifiedTimeType m_GaussianSmoothingTempFieldModifiedTime{ 0 };
133
137 ScalarType m_GaussianSpatialSmoothingVarianceForTheUpdateField{};
138 ScalarType m_GaussianSpatialSmoothingVarianceForTheTotalField{};
139 ScalarType m_GaussianTemporalSmoothingVarianceForTheUpdateField{};
140 ScalarType m_GaussianTemporalSmoothingVarianceForTheTotalField{};
141};
142
143} // end namespace itk
144
145#ifndef ITK_MANUAL_INSTANTIATION
146# include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
147#endif
148
149#endif // itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Array class with size defined at construction time.
Definition: itkArray.h:48
TValue ValueType
Definition: itkArray.h:52
Modifies the UpdateTransformParameters method to perform a Gaussian smoothing of the velocity field a...
virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField(VelocityFieldType *, ScalarType, ScalarType)
void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
void PrintSelf(std::ostream &os, Indent indent) const override
Templated n-dimensional image class.
Definition: itkImage.h:89
TPixel PixelType
Definition: itkImage.h:108
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Transform objects based on integration of a time-varying velocity field.
typename VelocityFieldType::Pointer TimeVaryingVelocityFieldPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType
Definition: itkIntTypes.h:105