ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkLevelSetMotionRegistrationFilter.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 __itkLevelSetMotionRegistrationFilter_h
19 #define __itkLevelSetMotionRegistrationFilter_h
20 
23 
24 namespace itk
25 {
90 template< class TFixedImage, class TMovingImage, class TDisplacementField >
92  public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
93  TDisplacementField >
94 {
95 public:
101 
103  itkNewMacro(Self);
104 
108 
110  typedef typename Superclass::TimeStepType TimeStepType;
111 
113  typedef typename Superclass::FixedImageType FixedImageType;
114  typedef typename Superclass::FixedImagePointer FixedImagePointer;
115 
117  typedef typename Superclass::MovingImageType MovingImageType;
118  typedef typename Superclass::MovingImagePointer MovingImagePointer;
119 
121  typedef typename Superclass::DisplacementFieldType
123  typedef typename Superclass::DisplacementFieldPointer
125 
127  typedef typename Superclass::FiniteDifferenceFunctionType
129 
133 
139  virtual double GetMetric() const;
140 
147  virtual void SetAlpha(double);
148 
149  virtual double GetAlpha() const;
150 
155  virtual void SetIntensityDifferenceThreshold(double);
156 
157  virtual double GetIntensityDifferenceThreshold() const;
158 
161  virtual void SetGradientMagnitudeThreshold(double);
162 
163  virtual double GetGradientMagnitudeThreshold() const;
164 
177  virtual void SetGradientSmoothingStandardDeviations(double sigma);
178 
179  virtual double GetGradientSmoothingStandardDeviations() const;
180 
181 protected:
184  void PrintSelf(std::ostream & os, Indent indent) const;
185 
187  virtual void InitializeIteration();
188 
190  virtual void ApplyUpdate(const TimeStepType& dt);
191 
196  virtual bool Halt();
197 
198 private:
199  LevelSetMotionRegistrationFilter(const Self &); //purposely not implemented
200  void operator=(const Self &); //purposely not implemented
201 };
202 } // end namespace itk
203 
204 #ifndef ITK_MANUAL_INSTANTIATION
205 #include "itkLevelSetMotionRegistrationFilter.hxx"
206 #endif
207 
208 #endif
209