ITK  4.13.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< typename TFixedImage, typename TMovingImage, typename TDisplacementField >
91 class ITK_TEMPLATE_EXPORT LevelSetMotionRegistrationFilter:
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 ITK_OVERRIDE;
185 
187  virtual void InitializeIteration() ITK_OVERRIDE;
188 
190  virtual void ApplyUpdate(const TimeStepType& dt) ITK_OVERRIDE;
191 
196  virtual bool Halt() ITK_OVERRIDE;
197 
198 private:
199  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetMotionRegistrationFilter);
200 };
201 } // end namespace itk
202 
203 #ifndef ITK_MANUAL_INSTANTIATION
204 #include "itkLevelSetMotionRegistrationFilter.hxx"
205 #endif
206 
207 #endif
Light weight base class for most itk classes.
LevelSetMotionRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > LevelSetMotionFunctionType
PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
Superclass::DisplacementFieldPointer DisplacementFieldPointer
Deformably register two images using level set motion.
Deformably register two images using a PDE algorithm.
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49