ITK  5.4.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  * https://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 
107  itkOverrideGetNameOfClassMacro(LevelSetMotionRegistrationFilter);
108 
110  using typename Superclass::TimeStepType;
111 
113  using typename Superclass::FixedImageType;
114  using typename Superclass::FixedImagePointer;
115 
117  using typename Superclass::MovingImageType;
118  using typename Superclass::MovingImagePointer;
119 
121  using typename Superclass::DisplacementFieldType;
122  using typename Superclass::DisplacementFieldPointer;
123 
125  using 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::FiniteDifferenceImageFilter< TDisplacementField, TDisplacementField >::TimeStepType
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
Definition: itkFiniteDifferenceImageFilter.h:167
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkLevelSetMotionRegistrationFunction.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
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
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