ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSymmetricForcesDemonsRegistrationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 #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,
72  TDisplacementField >
73 {
74 public:
75  ITK_DISALLOW_COPY_AND_ASSIGN(SymmetricForcesDemonsRegistrationFilter);
76 
82 
84  itkNewMacro(Self);
85 
89 
91  using FixedImageType = typename Superclass::FixedImageType;
92  using FixedImagePointer = typename Superclass::FixedImagePointer;
93 
95  using MovingImageType = typename Superclass::MovingImageType;
96  using MovingImagePointer = typename Superclass::MovingImagePointer;
97 
99  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
100  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
101 
103  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
104 
106  using TimeStepType = typename FiniteDifferenceFunctionType::TimeStepType;
107 
111 
116  virtual double GetMetric() const;
117 
118  const double & GetRMSChange() const override;
119 
124  virtual void SetIntensityDifferenceThreshold(double);
125 
126  virtual double GetIntensityDifferenceThreshold() const;
127 
128 protected:
130  ~SymmetricForcesDemonsRegistrationFilter() override = default;
131  void PrintSelf(std::ostream & os, Indent indent) const override;
132 
134  void InitializeIteration() override;
135 
137  void ApplyUpdate(const TimeStepType& dt) override;
138 };
139 } // end namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkSymmetricForcesDemonsRegistrationFilter.hxx"
143 #endif
144 
145 #endif
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Light weight base class for most itk classes.
typename DisplacementFieldType::Pointer DisplacementFieldPointer
typename MovingImageType::Pointer MovingImagePointer
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
Deformably register two images using a PDE algorithm.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Deformably register two images using the demons algorithm.