ITK  5.2.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  * 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, TDisplacementField>
72 {
73 public:
74  ITK_DISALLOW_COPY_AND_ASSIGN(SymmetricForcesDemonsRegistrationFilter);
75 
81 
83  itkNewMacro(Self);
84 
87 
89  using FixedImageType = typename Superclass::FixedImageType;
90  using FixedImagePointer = typename Superclass::FixedImagePointer;
91 
93  using MovingImageType = typename Superclass::MovingImageType;
94  using MovingImagePointer = typename Superclass::MovingImagePointer;
95 
97  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
98  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
99 
101  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
102 
104  using TimeStepType = typename FiniteDifferenceFunctionType::TimeStepType;
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::PDEDeformableRegistrationFilter::FiniteDifferenceFunctionType
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Definition: itkPDEDeformableRegistrationFilter.h:109
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::PDEDeformableRegistrationFilter::FixedImageType
TFixedImage FixedImageType
Definition: itkPDEDeformableRegistrationFilter.h:92
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkSymmetricForcesDemonsRegistrationFunction.h
itk::SymmetricForcesDemonsRegistrationFilter
Deformably register two images using the demons algorithm.
Definition: itkSymmetricForcesDemonsRegistrationFilter.h:70
itk::PDEDeformableRegistrationFilter::DisplacementFieldType
TDisplacementField DisplacementFieldType
Definition: itkPDEDeformableRegistrationFilter.h:102
itk::PDEDeformableRegistrationFilter::DisplacementFieldPointer
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Definition: itkPDEDeformableRegistrationFilter.h:103
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itkPDEDeformableRegistrationFilter.h
itk::PDEDeformableRegistrationFilter::FixedImagePointer
typename FixedImageType::Pointer FixedImagePointer
Definition: itkPDEDeformableRegistrationFilter.h:93
itk::PDEDeformableRegistrationFilter::MovingImageType
TMovingImage MovingImageType
Definition: itkPDEDeformableRegistrationFilter.h:97
itk::PDEDeformableRegistrationFilter
Deformably register two images using a PDE algorithm.
Definition: itkPDEDeformableRegistrationFilter.h:73
itk::PDEDeformableRegistrationFilter::MovingImagePointer
typename MovingImageType::Pointer MovingImagePointer
Definition: itkPDEDeformableRegistrationFilter.h:98