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

itkSymmetricForcesDemonsRegistrationFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSymmetricForcesDemonsRegistrationFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-27 19:30:16 $
00007   Version:   $Revision: 1.7 $
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 __itkSymmetricForcesDemonsRegistrationFilter_h
00018 #define __itkSymmetricForcesDemonsRegistrationFilter_h
00019 
00020 #include "itkPDEDeformableRegistrationFilter.h"
00021 #include "itkSymmetricForcesDemonsRegistrationFunction.h"
00022 
00023 namespace itk {
00024 
00067 template<class TFixedImage, class TMovingImage, class TDeformationField>
00068 class ITK_EXPORT SymmetricForcesDemonsRegistrationFilter : 
00069     public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage,
00070                                             TDeformationField>
00071 {
00072 public:
00074   typedef SymmetricForcesDemonsRegistrationFilter Self;
00075   typedef PDEDeformableRegistrationFilter<
00076     TFixedImage, TMovingImage,TDeformationField>  Superclass;
00077   typedef SmartPointer<Self>                      Pointer;
00078   typedef SmartPointer<const Self>                ConstPointer;
00079 
00081   itkNewMacro(Self);
00082 
00084   itkTypeMacro( SymmetricForcesDemonsRegistrationFilter, 
00085                 PDEDeformableRegistrationFilter );
00086 
00088   typedef typename Superclass::FixedImageType     FixedImageType;
00089   typedef typename Superclass::FixedImagePointer  FixedImagePointer;
00090 
00092   typedef typename Superclass::MovingImageType     MovingImageType;
00093   typedef typename Superclass::MovingImagePointer  MovingImagePointer;
00094 
00096   typedef typename Superclass::DeformationFieldType 
00097   DeformationFieldType;
00098   typedef typename Superclass::DeformationFieldPointer  
00099   DeformationFieldPointer;
00100 
00102   typedef typename Superclass::FiniteDifferenceFunctionType
00103   FiniteDifferenceFunctionType;
00104 
00106   typedef typename FiniteDifferenceFunctionType::TimeStepType  TimeStepType;
00107 
00108 
00110   typedef SymmetricForcesDemonsRegistrationFunction<FixedImageType,MovingImageType,
00111                                      DeformationFieldType>  DemonsRegistrationFunctionType;
00112 
00117   virtual double GetMetric() const;
00118   virtual const double &GetRMSChange() const;
00120 
00125   virtual void SetIntensityDifferenceThreshold(double);
00126   virtual double GetIntensityDifferenceThreshold() const;
00128 
00129 protected:
00130   SymmetricForcesDemonsRegistrationFilter();
00131   ~SymmetricForcesDemonsRegistrationFilter() {}
00132   void PrintSelf(std::ostream& os, Indent indent) const;
00133 
00135   virtual void InitializeIteration();
00136 
00138   virtual void ApplyUpdate(TimeStepType dt);
00139 
00140 private:
00141   SymmetricForcesDemonsRegistrationFilter(const Self&); //purposely not implemented
00142   void operator=(const Self&); //purposely not implemented
00143 
00144 };
00145 
00146 
00147 } // end namespace itk
00148 
00149 #ifndef ITK_MANUAL_INSTANTIATION
00150 #include "itkSymmetricForcesDemonsRegistrationFilter.txx"
00151 #endif
00152 
00153 #endif
00154 

Generated at Mon Jul 12 2010 20:00:27 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000