ITK  4.3.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< class TFixedImage, class TMovingImage, class TDisplacementField >
71  public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
72  TDisplacementField >
73 {
74 public:
80 
82  itkNewMacro(Self);
83 
87 
89  typedef typename Superclass::FixedImageType FixedImageType;
90  typedef typename Superclass::FixedImagePointer FixedImagePointer;
91 
93  typedef typename Superclass::MovingImageType MovingImageType;
94  typedef typename Superclass::MovingImagePointer MovingImagePointer;
95 
97  typedef typename Superclass::DisplacementFieldType
99  typedef typename Superclass::DisplacementFieldPointer
101 
103  typedef typename Superclass::FiniteDifferenceFunctionType
105 
107  typedef typename FiniteDifferenceFunctionType::TimeStepType TimeStepType;
108 
112 
117  virtual double GetMetric() const;
118 
119  virtual const double & GetRMSChange() const;
120 
125  virtual void SetIntensityDifferenceThreshold(double);
126 
127  virtual double GetIntensityDifferenceThreshold() const;
128 
129 protected:
132  void PrintSelf(std::ostream & os, Indent indent) const;
133 
135  virtual void InitializeIteration();
136 
138  virtual void ApplyUpdate(const TimeStepType& dt);
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
154