ITK  6.0.0
Insight Toolkit
itkFastSymmetricForcesDemonsRegistrationFilter.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 itkFastSymmetricForcesDemonsRegistrationFilter_h
19#define itkFastSymmetricForcesDemonsRegistrationFilter_h
20
23
26
27namespace itk
28{
72template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
74 : public PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
75{
76public:
77 ITK_DISALLOW_COPY_AND_MOVE(FastSymmetricForcesDemonsRegistrationFilter);
78
84
86 itkNewMacro(Self);
87
89 itkOverrideGetNameOfClassMacro(FastSymmetricForcesDemonsRegistrationFilter);
90
92 using typename Superclass::FixedImageType;
93 using typename Superclass::FixedImagePointer;
94
96 using typename Superclass::MovingImageType;
97 using typename Superclass::MovingImagePointer;
98
100 using typename Superclass::DisplacementFieldType;
101 using typename Superclass::DisplacementFieldPointer;
102
103 static constexpr unsigned int ImageDimension = FixedImageType::ImageDimension;
104
109 virtual double
110 GetMetric() const;
111
112 const double &
113 GetRMSChange() const override;
114
122
124 virtual void
126
127 virtual GradientType
129
134 virtual void
136
137 virtual double
139
141 virtual void
143
144 virtual double
146
147protected:
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
154 void
156
159 void
161
163 using typename Superclass::FiniteDifferenceFunctionType;
164
167
169 void
170 ApplyUpdate(const TimeStepType & dt) override;
171
175
177
180
181private:
189
192
194 AdderPointer m_Adder{};
195};
196} // end namespace itk
197
198#ifndef ITK_MANUAL_INSTANTIATION
199# include "itkFastSymmetricForcesDemonsRegistrationFilter.hxx"
200#endif
201
202#endif
Pixel-wise addition of two images.
Fast implementation of the symmetric demons registration force.
Deformably register two images using a symmetric forces demons algorithm.
virtual GradientType GetUseGradientType() const
virtual double GetIntensityDifferenceThreshold() const
const DemonsRegistrationFunctionType * DownCastDifferenceFunctionType() const
void ApplyUpdate(const TimeStepType &dt) override
const double & GetRMSChange() const override
virtual void SetUseGradientType(GradientType gtype)
void PrintSelf(std::ostream &os, Indent indent) const override
~FastSymmetricForcesDemonsRegistrationFilter() override=default
DemonsRegistrationFunctionType * DownCastDifferenceFunctionType()
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
typename DemonsRegistrationFunctionType::GradientEnum GradientType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Pixel-wise multiplication of two images.
Deformably register two images using a PDE algorithm.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....