00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _itkLevelSetMotionFilter_h_
00018 #define _itkLevelSetMotionFilter_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;
00148
00153 virtual void SetIntensityDifferenceThreshold(double);
00154 virtual double GetIntensityDifferenceThreshold() const;
00155
00158 virtual void SetGradientMagnitudeThreshold(double);
00159 virtual double GetGradientMagnitudeThreshold() const;
00160
00173 virtual void SetGradientSmoothingStandardDeviations( double sigma );
00174 virtual double GetGradientSmoothingStandardDeviations() const;
00175
00176 protected:
00177 LevelSetMotionRegistrationFilter();
00178 ~LevelSetMotionRegistrationFilter() {}
00179 void PrintSelf(std::ostream& os, Indent indent) const;
00180
00182 virtual void InitializeIteration();
00183
00185 virtual void ApplyUpdate(TimeStepType dt);
00186
00191 virtual bool Halt();
00192
00193 private:
00194 LevelSetMotionRegistrationFilter(const Self&);
00195 void operator=(const Self&);
00196
00197 };
00198
00199
00200 }
00201
00202 #ifndef ITK_MANUAL_INSTANTIATION
00203 #include "itkLevelSetMotionRegistrationFilter.txx"
00204 #endif
00205
00206 #endif