00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVersorRigid3DTransformOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/01/02 22:58:22 $ 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 __itkVersorRigid3DTransformOptimizer_h 00018 #define __itkVersorRigid3DTransformOptimizer_h 00019 00020 #include "itkRegularStepGradientDescentOptimizer.h" 00021 #include "itkVersor.h" 00022 00023 namespace itk 00024 { 00025 00049 class ITK_EXPORT VersorRigid3DTransformOptimizer : 00050 public RegularStepGradientDescentBaseOptimizer 00051 { 00052 public: 00054 typedef VersorRigid3DTransformOptimizer Self; 00055 typedef RegularStepGradientDescentBaseOptimizer Superclass; 00056 typedef SmartPointer<Self> Pointer; 00057 typedef SmartPointer<const Self> ConstPointer; 00058 00060 itkNewMacro(Self); 00061 00063 itkTypeMacro( VersorRigid3DTransformOptimizer, 00064 RegularStepGradientDescentBaseOptimizer ); 00065 00067 itkStaticConstMacro( SpaceDimension, unsigned int, 6 ); 00068 00070 typedef Versor<double> VersorType; 00071 typedef VersorType::VectorType VectorType; 00072 00073 00075 virtual void StepAlongGradient( double factor, 00076 const DerivativeType & transformedGradient ); 00077 00078 protected: 00079 VersorRigid3DTransformOptimizer() {} 00080 virtual ~VersorRigid3DTransformOptimizer() {} 00081 00082 private: 00083 VersorRigid3DTransformOptimizer(const Self&); //purposely not implemented 00084 void operator=(const Self&); //purposely not implemented 00085 00086 00087 }; 00088 00089 } // end namespace itk 00090 00091 00092 #endif 00093 00094 00095 00096