ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalDiffeomorphicRegistrationFilter.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 itkVariationalDiffeomorphicRegistrationFilter_h
19#define itkVariationalDiffeomorphicRegistrationFilter_h
20
23
24
25namespace itk
26{
27
81template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
83 : public VariationalRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
84{
85public:
86 ITK_DISALLOW_COPY_AND_MOVE(VariationalDiffeomorphicRegistrationFilter);
87
93
95 itkNewMacro(Self);
96
98 itkOverrideGetNameOfClassMacro(VariationalDiffeomorphicRegistrationFilter);
99
101 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
102
104 using FixedImageType = TFixedImage;
105 using FixedImagePointer = typename FixedImageType::Pointer;
106 using FixedImageConstPointer = typename FixedImageType::ConstPointer;
107
109 using MovingImageType = TMovingImage;
110 using MovingImagePointer = typename MovingImageType::Pointer;
111 using MovingImageConstPointer = typename MovingImageType::ConstPointer;
112
114 using DisplacementFieldType = TDisplacementField;
115 using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
116
119
122
125
128
130 itkSetMacro(NumberOfExponentiatorIterations, unsigned int);
131
133 itkGetConstMacro(NumberOfExponentiatorIterations, unsigned int);
134
136 void
138
142 {
143 return m_DisplacementField;
144 }
145
147 virtual void
149 {
150 this->SetInput(ptr);
151 }
152
154 virtual DisplacementFieldType *
156 {
157 return this->GetOutput();
158 }
159
160protected:
163
165 void
166 PrintSelf(std::ostream & os, Indent indent) const override;
167
169 void
170 Initialize() override;
171
173 void
174 ApplyUpdate(const TimeStepType & dt) override;
175
178 virtual void
180
184
187
191 {
192 return m_Exponentiator;
193 }
194
195private:
199
202};
203
204} // end namespace itk
205
206#ifndef ITK_MANUAL_INSTANTIATION
207# include "itkVariationalDiffeomorphicRegistrationFilter.hxx"
208#endif
209
210#endif
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field.
OutputImageType * GetOutput()
virtual void SetInput(const InputImageType *input)
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
~VariationalDiffeomorphicRegistrationFilter() override=default
VariationalRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
void ApplyUpdate(const TimeStepType &dt) override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void CalcDeformationFromVelocityField(const DisplacementFieldType *velocityField)
void SetInitialDisplacementField(DisplacementFieldType *ptr) override
itk::ExponentialDisplacementFieldImageFilter< DisplacementFieldType, DisplacementFieldType > FieldExponentiatorType
typename Superclass::OutputImageType OutputImageType
VariationalRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > RegistrationFunctionType
VariationalRegistrationRegularizer< DisplacementFieldType > RegularizerType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)