ITK  5.3.0
Insight Toolkit
itkLevelSetMotionRegistrationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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, TDisplacementField>
93 {
94 public:
95  ITK_DISALLOW_COPY_AND_MOVE(LevelSetMotionRegistrationFilter);
96 
102 
104  itkNewMacro(Self);
105 
108 
110  using TimeStepType = typename Superclass::TimeStepType;
111 
113  using FixedImageType = typename Superclass::FixedImageType;
114  using FixedImagePointer = typename Superclass::FixedImagePointer;
115 
117  using MovingImageType = typename Superclass::MovingImageType;
118  using MovingImagePointer = typename Superclass::MovingImagePointer;
119 
121  using DisplacementFieldType = typename Superclass::DisplacementFieldType;
122  using DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer;
123 
125  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
126 
130 
136  virtual double
137  GetMetric() const;
138 
145  virtual void
146  SetAlpha(double);
147 
148  virtual double
149  GetAlpha() const;
150 
155  virtual void
156  SetIntensityDifferenceThreshold(double);
157 
158  virtual double
159  GetIntensityDifferenceThreshold() const;
160 
163  virtual void
164  SetGradientMagnitudeThreshold(double);
165 
166  virtual double
167  GetGradientMagnitudeThreshold() const;
168 
181  virtual void
182  SetGradientSmoothingStandardDeviations(double sigma);
183 
184  virtual double
185  GetGradientSmoothingStandardDeviations() const;
186 
187 protected:
189  ~LevelSetMotionRegistrationFilter() override = default;
190  void
191  PrintSelf(std::ostream & os, Indent indent) const override;
192 
194  void
195  InitializeIteration() override;
196 
198  void
199  ApplyUpdate(const TimeStepType & dt) override;
200 
205  bool
206  Halt() override;
207 };
208 } // end namespace itk
209 
210 #ifndef ITK_MANUAL_INSTANTIATION
211 # include "itkLevelSetMotionRegistrationFilter.hxx"
212 #endif
213 
214 #endif
itk::LevelSetMotionRegistrationFilter::FiniteDifferenceFunctionType
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Definition: itkLevelSetMotionRegistrationFilter.h:125
itk::LevelSetMotionRegistrationFilter::MovingImageType
typename Superclass::MovingImageType MovingImageType
Definition: itkLevelSetMotionRegistrationFilter.h:117
itk::LevelSetMotionRegistrationFilter::MovingImagePointer
typename Superclass::MovingImagePointer MovingImagePointer
Definition: itkLevelSetMotionRegistrationFilter.h:118
itk::LevelSetMotionRegistrationFilter::DisplacementFieldPointer
typename Superclass::DisplacementFieldPointer DisplacementFieldPointer
Definition: itkLevelSetMotionRegistrationFilter.h:122
itk::LevelSetMotionRegistrationFilter::DisplacementFieldType
typename Superclass::DisplacementFieldType DisplacementFieldType
Definition: itkLevelSetMotionRegistrationFilter.h:121
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LevelSetMotionRegistrationFilter::FixedImagePointer
typename Superclass::FixedImagePointer FixedImagePointer
Definition: itkLevelSetMotionRegistrationFilter.h:114
itkLevelSetMotionRegistrationFunction.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::LevelSetMotionRegistrationFilter::TimeStepType
typename Superclass::TimeStepType TimeStepType
Definition: itkLevelSetMotionRegistrationFilter.h:110
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itkPDEDeformableRegistrationFilter.h
itk::LevelSetMotionRegistrationFunction
Definition: itkLevelSetMotionRegistrationFunction.h:55
itk::LevelSetMotionRegistrationFilter::FixedImageType
typename Superclass::FixedImageType FixedImageType
Definition: itkLevelSetMotionRegistrationFilter.h:113
itk::LevelSetMotionRegistrationFilter
Deformably register two images using level set motion.
Definition: itkLevelSetMotionRegistrationFilter.h:91
itk::PDEDeformableRegistrationFilter
Deformably register two images using a PDE algorithm.
Definition: itkPDEDeformableRegistrationFilter.h:73