ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkDemonsRegistrationFilter.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 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,
65  TDisplacementField >
66 {
67 public:
68  ITK_DISALLOW_COPY_AND_ASSIGN(DemonsRegistrationFilter);
69 
75 
77  itkNewMacro(Self);
78 
80  itkTypeMacro(DemonsRegistrationFilter,
82 
84  using TimeStepType = typename Superclass::TimeStepType;
85 
87  using FixedImageType = typename Superclass::FixedImageType;
88  using FixedImagePointer = typename Superclass::FixedImagePointer;
89 
91  using MovingImageType = typename Superclass::MovingImageType;
92  using MovingImagePointer = typename Superclass::MovingImagePointer;
93 
95  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
96  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
97 
99  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
100 
104 
110  virtual double GetMetric() const;
111 
114  itkSetMacro(UseMovingImageGradient, bool);
115  itkGetConstMacro(UseMovingImageGradient, bool);
116  itkBooleanMacro(UseMovingImageGradient);
118 
123  virtual void SetIntensityDifferenceThreshold(double);
124 
125  virtual double GetIntensityDifferenceThreshold() const;
126 
127 protected:
129  ~DemonsRegistrationFilter() override = default;
130  void PrintSelf(std::ostream & os, Indent indent) const override;
131 
133  void InitializeIteration() override;
134 
136  void ApplyUpdate(const TimeStepType& dt) override;
137 
143  void VerifyInputInformation() ITKv5_CONST override {}
144 
145 private:
147 };
148 } // end namespace itk
149 
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "itkDemonsRegistrationFilter.hxx"
152 #endif
153 
154 #endif
Deformably register two images using the demons algorithm.
Light weight base class for most itk classes.
void VerifyInputInformation() ITKv5_CONST override
typename Superclass::FixedImagePointer FixedImagePointer
typename Superclass::DisplacementFieldPointer DisplacementFieldPointer
typename Superclass::MovingImagePointer MovingImagePointer
typename Superclass::TimeStepType TimeStepType
typename Superclass::FixedImageType FixedImageType
Deformably register two images using a PDE algorithm.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::MovingImageType MovingImageType
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
typename Superclass::DisplacementFieldType DisplacementFieldType