ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkFastSymmetricForcesDemonsRegistrationFilter.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 __itkFastSymmetricForcesDemonsRegistrationFilter_h
19 #define __itkFastSymmetricForcesDemonsRegistrationFilter_h
20 
23 
24 #include "itkMultiplyImageFilter.h"
26 
27 namespace itk
28 {
72 template< typename TFixedImage, typename TMovingImage, typename TDisplacementField >
74  public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
75  TDisplacementField >
76 {
77 public:
83 
85  itkNewMacro(Self);
86 
90 
94 
98 
102 
103  itkStaticConstMacro(
104  ImageDimension, unsigned int, FixedImageType::ImageDimension);
105 
110  virtual double GetMetric() const;
111 
112  virtual const double & GetRMSChange() const;
113 
122 
124  virtual void SetUseGradientType(GradientType gtype);
125 
126  virtual GradientType GetUseGradientType() const;
127 
132  virtual void SetIntensityDifferenceThreshold(double);
133 
134  virtual double GetIntensityDifferenceThreshold() const;
135 
136  virtual void SetMaximumUpdateStepLength(double);
137 
138  virtual double GetMaximumUpdateStepLength() const;
139 
140 protected:
143  void PrintSelf(std::ostream & os, Indent indent) const;
144 
146  virtual void InitializeIteration();
147 
150  virtual void AllocateUpdateBuffer();
151 
153  typedef typename
155 
157  typedef typename
158  FiniteDifferenceFunctionType::TimeStepType TimeStepType;
159 
161  virtual void ApplyUpdate(const TimeStepType& dt);
162 
164  typedef MultiplyImageFilter<
168 
169  typedef AddImageFilter<
172 
175 
176 private:
177  FastSymmetricForcesDemonsRegistrationFilter(const Self &); //purposely not
178  // implemented
179  void operator=(const Self &); //purposely not
180 
181  // implemented
182 
186 
188 
191 };
192 } // end namespace itk
193 
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkFastSymmetricForcesDemonsRegistrationFilter.hxx"
196 #endif
197 
198 #endif
Pixel-wise addition of two images.
Light weight base class for most itk classes.
virtual void SetUseGradientType(GradientType gtype)
ESMDemonsRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > DemonsRegistrationFunctionType
AddImageFilter< DisplacementFieldType, DisplacementFieldType, DisplacementFieldType > AdderType
Deformably register two images using a symmetric forces demons algorithm.
MultiplyImageFilter< DisplacementFieldType, itk::Image< TimeStepType, ImageDimension >, DisplacementFieldType > MultiplyByConstantType
virtual GradientType GetUseGradientType() const
virtual void ApplyUpdate(const TimeStepType &dt)
void PrintSelf(std::ostream &os, Indent indent) const
virtual const double & GetRMSChange() const
Deformably register two images using a PDE algorithm.
DemonsRegistrationFunctionType * DownCastDifferenceFunctionType()
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Pixel-wise multiplication of two images.
Templated n-dimensional image class.
Definition: itkImage.h:75
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Fast implementation of the symmetric demons registration force.
virtual double GetIntensityDifferenceThreshold() const
PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass