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

itkPDEDeformableRegistrationFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPDEDeformableRegistrationFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/05/10 22:56:16 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) 2002 Insight 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 _itkPDEDeformableRegistrationFunction_h_
00018 #define _itkPDEDeformableRegistrationFunction_h_
00019 
00020 #include "itkFiniteDifferenceFunction.h"
00021 
00022 namespace itk {
00023 
00038 template<class TFixedImage, class TMovingImage, class TDeformationField>
00039 class ITK_EXPORT PDEDeformableRegistrationFunction : 
00040   public FiniteDifferenceFunction<TDeformationField>
00041 {
00042 public:
00044   typedef PDEDeformableRegistrationFunction    Self;
00045   typedef FiniteDifferenceFunction<TDeformationField>    Superclass;
00046   typedef SmartPointer<Self> Pointer;
00047   typedef SmartPointer<const Self> ConstPointer;
00048 
00050   itkTypeMacro( PDEDeformableRegistrationFunction, 
00051     FiniteDifferenceFunction );
00052 
00054   typedef TMovingImage   MovingImageType;
00055   typedef typename MovingImageType::ConstPointer  MovingImagePointer;
00056 
00058   typedef TFixedImage    FixedImageType;
00059   typedef typename FixedImageType::ConstPointer  FixedImagePointer;
00060   
00062   typedef TDeformationField    DeformationFieldType;
00063   typedef typename DeformationFieldType::Pointer   
00064     DeformationFieldTypePointer;
00065 
00067   void SetMovingImage( const MovingImageType * ptr )
00068     { m_MovingImage = ptr; }
00069 
00071   MovingImageType * GetMovingImage(void)
00072     { return m_MovingImage; }
00073 
00075   void SetFixedImage( const FixedImageType * ptr )
00076     { m_FixedImage = ptr; }
00077 
00079   FixedImageType * GetFixedImage(void)
00080     { return m_FixedImage; }
00081 
00082 protected:
00083   PDEDeformableRegistrationFunction()
00084     {
00085       m_MovingImage = NULL;
00086       m_FixedImage = NULL;
00087     }
00088 
00089   ~PDEDeformableRegistrationFunction() {}
00090 
00091   void PrintSelf(std::ostream& os, Indent indent) const
00092   {
00093     Superclass::PrintSelf(os, indent);
00094     os << indent << "MovingImage: ";
00095     os << m_MovingImage.GetPointer() << std::endl;
00096     os << indent << "FixedImage: ";
00097     os << m_FixedImage.GetPointer() << std::endl;
00098 
00099   };
00100 
00102   MovingImagePointer                m_MovingImage;
00103   
00105   FixedImagePointer                   m_FixedImage;
00106 
00107 private:
00108   PDEDeformableRegistrationFunction(const Self&); //purposely not implemented
00109   void operator=(const Self&); //purposely not implemented
00110   
00111 };
00112 
00113 
00114 } // end namespace itk
00115 
00116 
00117 #endif

Generated at Fri May 21 01:15:10 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000