ITK  4.13.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:
73 
75  itkNewMacro(Self);
76 
78  itkTypeMacro(DemonsRegistrationFilter,
80 
82  typedef typename Superclass::TimeStepType TimeStepType;
83 
85  typedef typename Superclass::FixedImageType FixedImageType;
86  typedef typename Superclass::FixedImagePointer FixedImagePointer;
87 
89  typedef typename Superclass::MovingImageType MovingImageType;
90  typedef typename Superclass::MovingImagePointer MovingImagePointer;
91 
93  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
94  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
95 
96 #ifdef ITKV3_COMPATIBILITY
97  typedef typename Superclass::DeformationFieldType DeformationFieldType;
98  typedef typename Superclass::DeformationFieldPointer DeformationFieldPointer;
99 #endif
100 
102  typedef typename Superclass::FiniteDifferenceFunctionType
104 
108 
114  virtual double GetMetric() const;
115 
118  itkSetMacro(UseMovingImageGradient, bool);
119  itkGetConstMacro(UseMovingImageGradient, bool);
120  itkBooleanMacro(UseMovingImageGradient);
122 
127  virtual void SetIntensityDifferenceThreshold(double);
128 
129  virtual double GetIntensityDifferenceThreshold() const;
130 
131 protected:
133  // ~DemonsRegistrationFilter() {} default implementation ok
134  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
135 
137  virtual void InitializeIteration() ITK_OVERRIDE;
138 
140  virtual void ApplyUpdate(const TimeStepType& dt) ITK_OVERRIDE;
141 
147  virtual void VerifyInputInformation() ITK_OVERRIDE {}
148 
149 private:
150  ITK_DISALLOW_COPY_AND_ASSIGN(DemonsRegistrationFilter);
151 
153 };
154 } // end namespace itk
155 
156 #ifndef ITK_MANUAL_INSTANTIATION
157 #include "itkDemonsRegistrationFilter.hxx"
158 #endif
159 
160 #endif
Deformably register two images using the demons algorithm.
Light weight base class for most itk classes.
Superclass::FixedImagePointer FixedImagePointer
Superclass::FixedImageType FixedImageType
Superclass::DisplacementFieldType DisplacementFieldType
Superclass::DisplacementFieldPointer DisplacementFieldPointer
PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Deformably register two images using a PDE algorithm.
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::MovingImageType MovingImageType
DemonsRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > DemonsRegistrationFunctionType
Superclass::MovingImagePointer MovingImagePointer