ITK  5.2.0
Insight Toolkit
itkDemonsRegistrationFilter.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 itkDemonsRegistrationFilter_h
19 #define itkDemonsRegistrationFilter_h
20 
23 
24 namespace itk
25 {
62 template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
63 class ITK_TEMPLATE_EXPORT DemonsRegistrationFilter
64  : public PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_MOVE(DemonsRegistrationFilter);
68 
74 
76  itkNewMacro(Self);
77 
80 
82  using TimeStepType = typename Superclass::TimeStepType;
83 
85  using FixedImageType = typename Superclass::FixedImageType;
86  using FixedImagePointer = typename Superclass::FixedImagePointer;
87 
89  using MovingImageType = typename Superclass::MovingImageType;
90  using MovingImagePointer = typename Superclass::MovingImagePointer;
91 
93  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
94  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
95 
97  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
98 
102 
108  virtual double
109  GetMetric() const;
110 
113  itkSetMacro(UseMovingImageGradient, bool);
114  itkGetConstMacro(UseMovingImageGradient, bool);
115  itkBooleanMacro(UseMovingImageGradient);
117 
122  virtual void
123  SetIntensityDifferenceThreshold(double);
124 
125  virtual double
126  GetIntensityDifferenceThreshold() const;
127 
128 protected:
130  ~DemonsRegistrationFilter() override = default;
131  void
132  PrintSelf(std::ostream & os, Indent indent) const override;
133 
135  void
136  InitializeIteration() override;
137 
139  void
140  ApplyUpdate(const TimeStepType & dt) override;
141 
147  void
148  VerifyInputInformation() ITKv5_CONST override
149  {}
150 
151 private:
153 };
154 } // end namespace itk
155 
156 #ifndef ITK_MANUAL_INSTANTIATION
157 # include "itkDemonsRegistrationFilter.hxx"
158 #endif
159 
160 #endif
itk::DemonsRegistrationFunction
Definition: itkDemonsRegistrationFunction.h:54
itk::DemonsRegistrationFilter::m_UseMovingImageGradient
bool m_UseMovingImageGradient
Definition: itkDemonsRegistrationFilter.h:152
itk::DemonsRegistrationFilter::MovingImagePointer
typename Superclass::MovingImagePointer MovingImagePointer
Definition: itkDemonsRegistrationFilter.h:90
itk::DemonsRegistrationFilter::FixedImagePointer
typename Superclass::FixedImagePointer FixedImagePointer
Definition: itkDemonsRegistrationFilter.h:86
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkDemonsRegistrationFunction.h
itk::DemonsRegistrationFilter::TimeStepType
typename Superclass::TimeStepType TimeStepType
Definition: itkDemonsRegistrationFilter.h:82
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::DemonsRegistrationFilter::MovingImageType
typename Superclass::MovingImageType MovingImageType
Definition: itkDemonsRegistrationFilter.h:89
itk::DemonsRegistrationFilter::FiniteDifferenceFunctionType
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Definition: itkDemonsRegistrationFilter.h:97
itk::DemonsRegistrationFilter::DisplacementFieldPointer
typename Superclass::DisplacementFieldPointer DisplacementFieldPointer
Definition: itkDemonsRegistrationFilter.h:94
itk::DemonsRegistrationFilter::VerifyInputInformation
void VerifyInputInformation() ITKv5_CONST override
Definition: itkDemonsRegistrationFilter.h:148
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::DemonsRegistrationFilter
Deformably register two images using the demons algorithm.
Definition: itkDemonsRegistrationFilter.h:63
itk::DemonsRegistrationFilter::DisplacementFieldType
typename Superclass::DisplacementFieldType DisplacementFieldType
Definition: itkDemonsRegistrationFilter.h:93
itkPDEDeformableRegistrationFilter.h
itk::DemonsRegistrationFilter::FixedImageType
typename Superclass::FixedImageType FixedImageType
Definition: itkDemonsRegistrationFilter.h:85
itk::PDEDeformableRegistrationFilter
Deformably register two images using a PDE algorithm.
Definition: itkPDEDeformableRegistrationFilter.h:73