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

itkImageToSpatialObjectRegistrationMethod.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToSpatialObjectRegistrationMethod.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/04/18 14:50:07 $
00007   Version:   $Revision: 1.4 $
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 __itkImageToSpatialObjectRegistrationMethod_h
00018 #define __itkImageToSpatialObjectRegistrationMethod_h
00019 
00020 #include "itkProcessObject.h"
00021 #include "itkImage.h"
00022 #include "itkImageToSpatialObjectMetric.h"
00023 #include "itkSingleValuedNonLinearOptimizer.h"
00024 
00025 namespace itk
00026 {
00027 
00082 template <typename TFixedImage, typename TMovingSpatialObject>
00083 class ITK_EXPORT ImageToSpatialObjectRegistrationMethod : public ProcessObject 
00084 {
00085 public:
00087   typedef ImageToSpatialObjectRegistrationMethod  Self;
00088   typedef ProcessObject  Superclass;
00089   typedef SmartPointer<Self>   Pointer;
00090   typedef SmartPointer<const Self>  ConstPointer;
00091 
00093   itkNewMacro(Self);
00094 
00096   itkTypeMacro(ImageToSpatialObjectRegistrationMethod, ProcessObject);
00097 
00099   typedef          TFixedImage                     FixedImageType;
00100   typedef typename FixedImageType::ConstPointer    FixedImageConstPointer;
00101 
00103   typedef TMovingSpatialObject       MovingSpatialObjectType;
00104   typedef typename MovingSpatialObjectType::ConstPointer
00105   MovingSpatialObjectConstPointer;
00106 
00108   typedef ImageToSpatialObjectMetric< FixedImageType,
00109                                       MovingSpatialObjectType >     MetricType;
00110   typedef typename MetricType::Pointer             MetricPointer;
00111 
00113   typedef  typename MetricType::TransformType      TransformType;
00114   typedef  typename TransformType::Pointer         TransformPointer;
00115 
00117   typedef  typename MetricType::InterpolatorType   InterpolatorType;
00118   typedef  typename InterpolatorType::Pointer      InterpolatorPointer;
00119 
00121   typedef   SingleValuedNonLinearOptimizer         OptimizerType;
00122 
00125   typedef  typename MetricType::TransformParametersType    ParametersType;
00126 
00128   void StartRegistration(void);
00129 
00131   itkSetConstObjectMacro( FixedImage, FixedImageType );
00132   itkGetConstObjectMacro( FixedImage, FixedImageType ); 
00134 
00136   itkSetConstObjectMacro( MovingSpatialObject, MovingSpatialObjectType );
00137   itkGetConstObjectMacro( MovingSpatialObject, MovingSpatialObjectType );
00139 
00141   itkSetObjectMacro( Optimizer,  OptimizerType );
00142   itkGetObjectMacro( Optimizer,  OptimizerType );
00144 
00146   itkSetObjectMacro( Metric, MetricType );
00147   itkGetObjectMacro( Metric, MetricType );
00149 
00151   itkSetObjectMacro( Transform, TransformType );
00152   itkGetObjectMacro( Transform, TransformType );
00154 
00156   itkSetObjectMacro( Interpolator, InterpolatorType );
00157   itkGetObjectMacro( Interpolator, InterpolatorType );
00159 
00161   itkSetMacro( InitialTransformParameters, ParametersType );
00162   itkGetConstReferenceMacro( InitialTransformParameters, ParametersType );
00164 
00167   itkGetConstReferenceMacro( LastTransformParameters, ParametersType );
00168 
00169 protected:
00170   ImageToSpatialObjectRegistrationMethod();
00171   virtual ~ImageToSpatialObjectRegistrationMethod() {};
00172   void PrintSelf(std::ostream& os, Indent indent) const;
00173 
00175   void Initialize() throw (ExceptionObject);
00176 
00177   ParametersType                   m_InitialTransformParameters;
00178   ParametersType                   m_LastTransformParameters;
00179 
00180 private:
00181   ImageToSpatialObjectRegistrationMethod(const Self&); //purposely not implemented
00182   void operator=(const Self&); //purposely not implemented
00183   
00184   MetricPointer                    m_Metric;
00185   OptimizerType::Pointer           m_Optimizer;
00186 
00187   MovingSpatialObjectConstPointer  m_MovingSpatialObject;
00188   FixedImageConstPointer           m_FixedImage;
00189 
00190   TransformPointer                 m_Transform;
00191   InterpolatorPointer              m_Interpolator;
00192   
00193 };
00194 
00195 
00196 } // end namespace itk
00197 
00198 
00199 #ifndef ITK_MANUAL_INSTANTIATION
00200 #include "itkImageToSpatialObjectRegistrationMethod.txx"
00201 #endif
00202 
00203 #endif
00204 

Generated at Fri Sep 8 03:29:45 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000