go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkDeformationFieldRegulizer.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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
19#ifndef itkDeformationFieldRegulizer_h
20#define itkDeformationFieldRegulizer_h
21
23#include "itkImageRegionIterator.h"
24
25namespace itk
26{
27
40template <class TAnyITKTransform>
41class ITK_TEMPLATE_EXPORT DeformationFieldRegulizer : public TAnyITKTransform
42{
43public:
45
49 using Pointer = SmartPointer<Self>;
50 using ConstPointer = SmartPointer<const Self>;
51
53 itkNewMacro(Self);
54
57
59 itkStaticConstMacro(InputSpaceDimension, unsigned int, Superclass::InputSpaceDimension);
61 itkStaticConstMacro(OutputSpaceDimension, unsigned int, Superclass::OutputSpaceDimension);
62
64 using typename Superclass::ScalarType;
65 using typename Superclass::ParametersType;
66 using typename Superclass::JacobianType;
67 using typename Superclass::InputVectorType;
68 using typename Superclass::OutputVectorType;
69 using typename Superclass::InputCovariantVectorType;
70 using typename Superclass::OutputCovariantVectorType;
71 using typename Superclass::InputVnlVectorType;
72 using typename Superclass::OutputVnlVectorType;
73 using typename Superclass::InputPointType;
74 using typename Superclass::OutputPointType;
75
79 using VectorImageType = typename IntermediaryDFTransformType ::CoefficientVectorImageType;
80 using VectorPixelType = typename VectorImageType::PixelType;
81 using IteratorType = ImageRegionIterator<VectorImageType>;
82
84 using RegionType = typename VectorImageType::RegionType;
85 using SpacingType = typename VectorImageType::SpacingType;
86 using OriginType = typename VectorImageType::PointType;
87
89 void
91
95 virtual void
96 UpdateIntermediaryDeformationFieldTransform(typename VectorImageType::Pointer vecImage);
97
99 itkSetMacro(DeformationFieldRegion, RegionType);
100
102 itkSetMacro(DeformationFieldSpacing, SpacingType);
103
105 itkSetMacro(DeformationFieldOrigin, OriginType);
106
108 itkGetConstObjectMacro(IntermediaryDeformationFieldTransform, IntermediaryDFTransformType);
109
111 OutputPointType
112 TransformPoint(const InputPointType & inputPoint) const override;
113
114protected:
118 ~DeformationFieldRegulizer() override = default;
119
120private:
124
129};
130
131} // end namespace itk
132
133#ifndef ITK_MANUAL_INSTANTIATION
134# include "itkDeformationFieldRegulizer.hxx"
135#endif
136
137#endif // end #ifndef itkDeformationFieldRegulizer_h
This class combines any itk transform with the DeformationFieldTransform.
ITK_DISALLOW_COPY_AND_MOVE(DeformationFieldRegulizer)
itkStaticConstMacro(OutputSpaceDimension, unsigned int, Superclass::OutputSpaceDimension)
typename IntermediaryDFTransformType::Pointer IntermediaryDFTransformPointer
typename VectorImageType::RegionType RegionType
typename IntermediaryDFTransformType ::CoefficientVectorImageType VectorImageType
OutputPointType TransformPoint(const InputPointType &inputPoint) const override
typename VectorImageType::PixelType VectorPixelType
typename VectorImageType::SpacingType SpacingType
virtual void UpdateIntermediaryDeformationFieldTransform(typename VectorImageType::Pointer vecImage)
IntermediaryDFTransformPointer m_IntermediaryDeformationFieldTransform
ImageRegionIterator< VectorImageType > IteratorType
itkStaticConstMacro(InputSpaceDimension, unsigned int, Superclass::InputSpaceDimension)
~DeformationFieldRegulizer() override=default
typename VectorImageType::PointType OriginType
An itk transform based on a DeformationVectorField.


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo