ITK  5.4.0
Insight Toolkit
itkSymmetricForcesDemonsRegistrationFilter.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 itkSymmetricForcesDemonsRegistrationFilter_h
19 #define itkSymmetricForcesDemonsRegistrationFilter_h
20 
23 
24 namespace itk
25 {
69 template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
70 class ITK_TEMPLATE_EXPORT SymmetricForcesDemonsRegistrationFilter
71  : public PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
72 {
73 public:
74  ITK_DISALLOW_COPY_AND_MOVE(SymmetricForcesDemonsRegistrationFilter);
75 
81 
83  itkNewMacro(Self);
84 
86  itkOverrideGetNameOfClassMacro(SymmetricForcesDemonsRegistrationFilter);
87 
89  using typename Superclass::FixedImageType;
90  using typename Superclass::FixedImagePointer;
91 
93  using typename Superclass::MovingImageType;
94  using typename Superclass::MovingImagePointer;
95 
97  using typename Superclass::DisplacementFieldType;
98  using typename Superclass::DisplacementFieldPointer;
99 
101  using typename Superclass::FiniteDifferenceFunctionType;
102 
105 
109 
114  virtual double
115  GetMetric() const;
116 
117  const double &
118  GetRMSChange() const override;
119 
124  virtual void
125  SetIntensityDifferenceThreshold(double);
126 
127  virtual double
128  GetIntensityDifferenceThreshold() const;
129 
130 protected:
132  ~SymmetricForcesDemonsRegistrationFilter() override = default;
133  void
134  PrintSelf(std::ostream & os, Indent indent) const override;
135 
137  void
138  InitializeIteration() override;
139 
141  void
142  ApplyUpdate(const TimeStepType & dt) override;
143 };
144 } // end namespace itk
145 
146 #ifndef ITK_MANUAL_INSTANTIATION
147 # include "itkSymmetricForcesDemonsRegistrationFilter.hxx"
148 #endif
149 
150 #endif
itk::SymmetricForcesDemonsRegistrationFilter::TimeStepType
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
Definition: itkSymmetricForcesDemonsRegistrationFilter.h:104
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::SymmetricForcesDemonsRegistrationFunction
Definition: itkSymmetricForcesDemonsRegistrationFunction.h:62
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itkSymmetricForcesDemonsRegistrationFunction.h
itk::SymmetricForcesDemonsRegistrationFilter
Deformably register two images using the demons algorithm.
Definition: itkSymmetricForcesDemonsRegistrationFilter.h:70
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itkPDEDeformableRegistrationFilter.h
itk::PDEDeformableRegistrationFilter
Deformably register two images using a PDE algorithm.
Definition: itkPDEDeformableRegistrationFilter.h:73
itk::FiniteDifferenceFunction< TDisplacementField >::TimeStepType
double TimeStepType
Definition: itkFiniteDifferenceFunction.h:90