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

itkPointSetToPointSetRegistrationMethod.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPointSetToPointSetRegistrationMethod.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/11/08 17:58:32 $
00007   Version:   $Revision: 1.1 $
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 __itkPointSetToPointSetRegistrationMethod_h
00018 #define __itkPointSetToPointSetRegistrationMethod_h
00019 
00020 #include "itkProcessObject.h"
00021 #include "itkPointSetToPointSetMetric.h"
00022 #include "itkMultipleValuedNonLinearOptimizer.h"
00023 
00024 namespace itk
00025 {
00026 
00060 template <typename TFixedPointSet, typename TMovingPointSet>
00061 class ITK_EXPORT PointSetToPointSetRegistrationMethod : public ProcessObject 
00062 {
00063 public:
00065   typedef PointSetToPointSetRegistrationMethod  Self;
00066   typedef ProcessObject  Superclass;
00067   typedef SmartPointer<Self>   Pointer;
00068   typedef SmartPointer<const Self>  ConstPointer;
00069 
00071   itkNewMacro(Self);
00072 
00074   itkTypeMacro(PointSetToPointSetRegistrationMethod, ProcessObject);
00075 
00077   typedef          TFixedPointSet                   FixedPointSetType;
00078   typedef typename FixedPointSetType::ConstPointer  FixedPointSetConstPointer;
00079 
00081   typedef          TMovingPointSet                  MovingPointSetType;
00082   typedef typename MovingPointSetType::ConstPointer    MovingPointSetConstPointer;
00083 
00085   typedef PointSetToPointSetMetric< FixedPointSetType,
00086                                  MovingPointSetType >    MetricType;
00087   typedef typename MetricType::Pointer                MetricPointer;
00088 
00090   typedef  typename MetricType::TransformType      TransformType;
00091   typedef  typename TransformType::Pointer         TransformPointer;
00092 
00094   typedef   MultipleValuedNonLinearOptimizer         OptimizerType;
00095 
00098   typedef  typename MetricType::TransformParametersType    ParametersType;
00099 
00101   void StartRegistration(void);
00102 
00104   itkSetConstObjectMacro( FixedPointSet, FixedPointSetType );
00105   itkGetConstObjectMacro( FixedPointSet, FixedPointSetType ); 
00107 
00109   itkSetConstObjectMacro( MovingPointSet, MovingPointSetType );
00110   itkGetConstObjectMacro( MovingPointSet, MovingPointSetType );
00112 
00114   itkSetObjectMacro( Optimizer,  OptimizerType );
00115   itkGetObjectMacro( Optimizer,  OptimizerType );
00117 
00119   itkSetObjectMacro( Metric, MetricType );
00120   itkGetObjectMacro( Metric, MetricType );
00122 
00124   itkSetObjectMacro( Transform, TransformType );
00125   itkGetObjectMacro( Transform, TransformType );
00127 
00129   virtual void SetInitialTransformParameters( const ParametersType & param );
00130   itkGetConstReferenceMacro( InitialTransformParameters, ParametersType );
00132 
00135   itkGetConstReferenceMacro( LastTransformParameters, ParametersType );
00136 
00138   void Initialize() throw (ExceptionObject);
00139 
00140 protected:
00141   PointSetToPointSetRegistrationMethod();
00142   virtual ~PointSetToPointSetRegistrationMethod() {};
00143   void PrintSelf(std::ostream& os, Indent indent) const;
00144 
00145 private:
00146   PointSetToPointSetRegistrationMethod(const Self&); //purposely not implemented
00147   void operator=(const Self&); //purposely not implemented
00148   
00149   MetricPointer                    m_Metric;
00150   OptimizerType::Pointer           m_Optimizer;
00151 
00152   MovingPointSetConstPointer       m_MovingPointSet;
00153   FixedPointSetConstPointer        m_FixedPointSet;
00154 
00155   TransformPointer                 m_Transform;
00156 
00157   ParametersType                   m_InitialTransformParameters;
00158   ParametersType                   m_LastTransformParameters;
00159   
00160 };
00161 
00162 
00163 } // end namespace itk
00164 
00165 
00166 #ifndef ITK_MANUAL_INSTANTIATION
00167 #include "itkPointSetToPointSetRegistrationMethod.txx"
00168 #endif
00169 
00170 #endif
00171 
00172 
00173 
00174 

Generated at Sat Sep 2 21:00:18 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000