ITK  4.8.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 >
71  public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
72  TDisplacementField >
73 {
74 public:
80 
82  itkNewMacro(Self);
83 
87 
91 
95 
97  typedef typename Superclass::DisplacementFieldType
101 
105 
107  typedef typename FiniteDifferenceFunctionType::TimeStepType TimeStepType;
108 
112 
117  virtual double GetMetric() const;
118 
119  virtual const double & GetRMSChange() const ITK_OVERRIDE;
120 
125  virtual void SetIntensityDifferenceThreshold(double);
126 
127  virtual double GetIntensityDifferenceThreshold() const;
128 
129 protected:
131  ~SymmetricForcesDemonsRegistrationFilter() {}
132  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
133 
135  virtual void InitializeIteration() ITK_OVERRIDE;
136 
138  virtual void ApplyUpdate(const TimeStepType& dt) ITK_OVERRIDE;
139 
140 private:
141  SymmetricForcesDemonsRegistrationFilter(const Self &); //purposely not
142  // implemented
143  void operator=(const Self &); //purposely not
144 
145  // implemented
146 };
147 } // end namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkSymmetricForcesDemonsRegistrationFilter.hxx"
151 #endif
152 
153 #endif
virtual void ApplyUpdate(const TimeStepType &dt) override
Light weight base class for most itk classes.
virtual void SetIntensityDifferenceThreshold(double)
SymmetricForcesDemonsRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > DemonsRegistrationFunctionType
PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
virtual const double & GetRMSChange() const override
Deformably register two images using a PDE algorithm.
virtual double GetIntensityDifferenceThreshold() const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Deformably register two images using the demons algorithm.
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType