ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDiffeomorphicDemonsRegistrationFilter.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 itkDiffeomorphicDemonsRegistrationFilter_h
19#define itkDiffeomorphicDemonsRegistrationFilter_h
20
23
26
27namespace itk
28{
73template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
75 : public PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
76{
77public:
78 ITK_DISALLOW_COPY_AND_MOVE(DiffeomorphicDemonsRegistrationFilter);
79
85
87 itkNewMacro(Self);
88
90 itkOverrideGetNameOfClassMacro(DiffeomorphicDemonsRegistrationFilter);
91
93 using typename Superclass::FixedImageType;
94 using typename Superclass::FixedImagePointer;
95
97 using typename Superclass::MovingImageType;
98 using typename Superclass::MovingImagePointer;
99
103
106
109
114
115 static constexpr unsigned int ImageDimension = FixedImageType::ImageDimension;
116
121 virtual double
122 GetMetric() const;
123
124 const double &
125 GetRMSChange() const override;
126
127 virtual void
129
130 virtual GradientType
132
136 itkSetMacro(UseFirstOrderExp, bool);
137 itkGetConstMacro(UseFirstOrderExp, bool);
138 itkBooleanMacro(UseFirstOrderExp);
140
145 virtual void
147
148 virtual double
150
153 virtual void
155
156 virtual double
158
159protected:
162 void
163 PrintSelf(std::ostream & os, Indent indent) const override;
164
166 void
168
171 void
173
175 void
176 ApplyUpdate(const TimeStepType & dt) override;
177
178private:
186
189
193
195
197
200
202
208 using AdderPointer = typename AdderType::Pointer;
209
214 bool m_UseFirstOrderExp{ false };
215};
216} // end namespace itk
217
218#ifndef ITK_MANUAL_INSTANTIATION
219# include "itkDiffeomorphicDemonsRegistrationFilter.hxx"
220#endif
221
222#endif
Pixel-wise addition of two images.
virtual GradientType GetUseGradientType() const
typename MultiplyByConstantType::Pointer MultiplyByConstantPointer
void ApplyUpdate(const TimeStepType &dt) override
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
ExponentialDisplacementFieldImageFilter< DisplacementFieldType, DisplacementFieldType > FieldExponentiatorType
const DemonsRegistrationFunctionType * DownCastDifferenceFunctionType() const
AddImageFilter< DisplacementFieldType, DisplacementFieldType, DisplacementFieldType > AdderType
typename FieldInterpolatorType::OutputType FieldInterpolatorOutputType
virtual double GetIntensityDifferenceThreshold() const
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetUseGradientType(GradientType gtype)
~DiffeomorphicDemonsRegistrationFilter() override=default
virtual void SetIntensityDifferenceThreshold(double)
virtual double GetMaximumUpdateStepLength() const
typename DemonsRegistrationFunctionType::GradientEnum GradientType
MultiplyImageFilter< DisplacementFieldType, itk::Image< TimeStepType, ImageDimension >, DisplacementFieldType > MultiplyByConstantType
typename FieldExponentiatorType::Pointer FieldExponentiatorPointer
VectorLinearInterpolateNearestNeighborExtrapolateImageFunction< DisplacementFieldType, double > FieldInterpolatorType
const double & GetRMSChange() const override
WarpVectorImageFilter< DisplacementFieldType, DisplacementFieldType, DisplacementFieldType > VectorWarperType
PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
DemonsRegistrationFunctionType * DownCastDifferenceFunctionType()
ESMDemonsRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > DemonsRegistrationFunctionType
virtual void SetMaximumUpdateStepLength(double)
Fast implementation of the symmetric demons registration force.
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Pixel-wise multiplication of two images.
FiniteDifferenceFunction< TDisplacementField > FiniteDifferenceFunctionType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Implements transparent reference counting.
Warps an image using an input displacement field.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....