itkLevelSetMotionRegistrationFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkLevelSetMotionRegistrationFilter_h
00018 #define __itkLevelSetMotionRegistrationFilter_h
00019
00020 #include "itkPDEDeformableRegistrationFilter.h"
00021 #include "itkLevelSetMotionRegistrationFunction.h"
00022
00023 namespace itk {
00024
00088 template<class TFixedImage, class TMovingImage, class TDeformationField>
00089 class ITK_EXPORT LevelSetMotionRegistrationFilter :
00090 public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
00091 TDeformationField>
00092 {
00093 public:
00095 typedef LevelSetMotionRegistrationFilter Self;
00096 typedef PDEDeformableRegistrationFilter<
00097 TFixedImage, TMovingImage,TDeformationField> Superclass;
00098 typedef SmartPointer<Self> Pointer;
00099 typedef SmartPointer<const Self> ConstPointer;
00100
00102 itkNewMacro(Self);
00103
00105 itkTypeMacro( LevelSetMotionRegistrationFilter,
00106 PDEDeformableRegistrationFilter );
00107
00109 typedef typename Superclass::TimeStepType TimeStepType;
00110
00112 typedef typename Superclass::FixedImageType FixedImageType;
00113 typedef typename Superclass::FixedImagePointer FixedImagePointer;
00114
00116 typedef typename Superclass::MovingImageType MovingImageType;
00117 typedef typename Superclass::MovingImagePointer MovingImagePointer;
00118
00120 typedef typename Superclass::DeformationFieldType
00121 DeformationFieldType;
00122 typedef typename Superclass::DeformationFieldPointer
00123 DeformationFieldPointer;
00124
00126 typedef typename Superclass::FiniteDifferenceFunctionType
00127 FiniteDifferenceFunctionType;
00128
00130 typedef LevelSetMotionRegistrationFunction<FixedImageType,MovingImageType,
00131 DeformationFieldType> LevelSetMotionFunctionType;
00132
00138 virtual double GetMetric() const;
00139
00146 virtual void SetAlpha(double);
00147 virtual double GetAlpha() const;
00149
00154 virtual void SetIntensityDifferenceThreshold(double);
00155 virtual double GetIntensityDifferenceThreshold() const;
00157
00160 virtual void SetGradientMagnitudeThreshold(double);
00161 virtual double GetGradientMagnitudeThreshold() const;
00163
00176 virtual void SetGradientSmoothingStandardDeviations( double sigma );
00177 virtual double GetGradientSmoothingStandardDeviations() const;
00179
00180 protected:
00181 LevelSetMotionRegistrationFilter();
00182 ~LevelSetMotionRegistrationFilter() {}
00183 void PrintSelf(std::ostream& os, Indent indent) const;
00184
00186 virtual void InitializeIteration();
00187
00189 virtual void ApplyUpdate(TimeStepType dt);
00190
00195 virtual bool Halt();
00196
00197 private:
00198 LevelSetMotionRegistrationFilter(const Self&);
00199 void operator=(const Self&);
00200
00201 };
00202
00203
00204 }
00205
00206 #ifndef ITK_MANUAL_INSTANTIATION
00207 #include "itkLevelSetMotionRegistrationFilter.txx"
00208 #endif
00209
00210 #endif
00211