ITK  5.0.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:
96  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetMotionRegistrationFilter);
97 
103 
105  itkNewMacro(Self);
106 
110 
112  using TimeStepType = typename Superclass::TimeStepType;
113 
115  using FixedImageType = typename Superclass::FixedImageType;
116  using FixedImagePointer = typename Superclass::FixedImagePointer;
117 
119  using MovingImageType = typename Superclass::MovingImageType;
120  using MovingImagePointer = typename Superclass::MovingImagePointer;
121 
123  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
124  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
125 
127  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
128 
132 
138  virtual double GetMetric() const;
139 
146  virtual void SetAlpha(double);
147 
148  virtual double GetAlpha() const;
149 
154  virtual void SetIntensityDifferenceThreshold(double);
155 
156  virtual double GetIntensityDifferenceThreshold() const;
157 
160  virtual void SetGradientMagnitudeThreshold(double);
161 
162  virtual double GetGradientMagnitudeThreshold() const;
163 
176  virtual void SetGradientSmoothingStandardDeviations(double sigma);
177 
178  virtual double GetGradientSmoothingStandardDeviations() const;
179 
180 protected:
182  ~LevelSetMotionRegistrationFilter() override = default;
183  void PrintSelf(std::ostream & os, Indent indent) const override;
184 
186  void InitializeIteration() override;
187 
189  void ApplyUpdate(const TimeStepType& dt) override;
190 
195  bool Halt() override;
196 };
197 } // end namespace itk
198 
199 #ifndef ITK_MANUAL_INSTANTIATION
200 #include "itkLevelSetMotionRegistrationFilter.hxx"
201 #endif
202 
203 #endif
Light weight base class for most itk classes.
typename Superclass::DisplacementFieldPointer DisplacementFieldPointer
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
typename Superclass::FixedImagePointer FixedImagePointer
typename Superclass::MovingImagePointer MovingImagePointer
typename Superclass::MovingImageType MovingImageType
Deformably register two images using level set motion.
Deformably register two images using a PDE algorithm.
typename Superclass::DisplacementFieldType DisplacementFieldType
Control indentation during Print() invocation.
Definition: itkIndent.h:49