Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkDemonsRegistrationFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDemonsRegistrationFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/06/17 15:25:58 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef _itkDemonsRegistrationFilter_h_
00018 #define _itkDemonsRegistrationFilter_h_
00019 
00020 #include "itkPDEDeformableRegistrationFilter.h"
00021 #include "itkDemonsRegistrationFunction.h"
00022 
00023 namespace itk {
00024 
00060 template<class TFixedImage, class TMovingImage, class TDeformationField>
00061 class ITK_EXPORT DemonsRegistrationFilter : 
00062     public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
00063                                             TDeformationField>
00064 {
00065 public:
00067   typedef DemonsRegistrationFilter    Self;
00068   typedef PDEDeformableRegistrationFilter<
00069     TFixedImage, TMovingImage,TDeformationField>    Superclass;
00070   typedef SmartPointer<Self> Pointer;
00071   typedef SmartPointer<const Self> ConstPointer;
00072 
00074   itkNewMacro(Self);
00075 
00077   itkTypeMacro( DemonsRegistrationFilter, 
00078                 PDEDeformableRegistrationFilter );
00079 
00081   typedef typename Superclass::TimeStepType  TimeStepType;
00082 
00084   typedef typename Superclass::FixedImageType   FixedImageType;
00085   typedef typename Superclass::FixedImagePointer  FixedImagePointer;
00086 
00088   typedef typename Superclass::MovingImageType    MovingImageType;
00089   typedef typename Superclass::MovingImagePointer  MovingImagePointer;
00090 
00092   typedef typename Superclass::DeformationFieldType 
00093   DeformationFieldType;
00094   typedef typename Superclass::DeformationFieldPointer  
00095   DeformationFieldPointer;
00096 
00098   typedef typename Superclass::FiniteDifferenceFunctionType
00099   FiniteDifferenceFunctionType;
00100 
00102   typedef DemonsRegistrationFunction<FixedImageType,MovingImageType,
00103                                      DeformationFieldType>  DemonsRegistrationFunctionType;
00104 
00110   virtual double GetMetric() const;
00111 
00114   itkSetMacro( UseMovingImageGradient, bool );
00115   itkGetMacro( UseMovingImageGradient, bool );
00116   itkBooleanMacro( UseMovingImageGradient );
00118 
00123   virtual void SetIntensityDifferenceThreshold(double);
00124   virtual double GetIntensityDifferenceThreshold() const;
00126 
00127 protected:
00128   DemonsRegistrationFilter();
00129   ~DemonsRegistrationFilter() {}
00130   void PrintSelf(std::ostream& os, Indent indent) const;
00131 
00133   virtual void InitializeIteration();
00134 
00136   virtual void ApplyUpdate(TimeStepType dt);
00137 
00138 private:
00139   DemonsRegistrationFilter(const Self&); //purposely not implemented
00140   void operator=(const Self&); //purposely not implemented
00141 
00142   bool  m_UseMovingImageGradient;
00143 
00144 };
00145 
00146 
00147 } // end namespace itk
00148 
00149 #ifndef ITK_MANUAL_INSTANTIATION
00150 #include "itkDemonsRegistrationFilter.txx"
00151 #endif
00152 
00153 #endif
00154 

Generated at Wed Nov 5 21:07:18 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000