00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVersorTransformOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007-03-22 14:29:14 $ 00007 Version: $Revision: 1.11 $ 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 __itkVersorTransformOptimizer_h 00018 #define __itkVersorTransformOptimizer_h 00019 00020 #include "itkRegularStepGradientDescentOptimizer.h" 00021 #include "itkVersor.h" 00022 00023 namespace itk 00024 { 00025 00050 class ITK_EXPORT VersorTransformOptimizer : 00051 public RegularStepGradientDescentBaseOptimizer 00052 { 00053 public: 00055 typedef VersorTransformOptimizer Self; 00056 typedef RegularStepGradientDescentBaseOptimizer Superclass; 00057 typedef SmartPointer<Self> Pointer; 00058 typedef SmartPointer<const Self> ConstPointer; 00059 00061 itkNewMacro(Self); 00062 00064 itkTypeMacro( VersorTransformOptimizer, 00065 RegularStepGradientDescentBaseOptimizer ); 00066 00068 typedef Versor<double> VersorType; 00069 typedef VersorType::VectorType VectorType; 00070 00072 virtual void StepAlongGradient( double factor, 00073 const DerivativeType & transformedGradient ); 00074 00075 protected: 00076 VersorTransformOptimizer() {} 00077 virtual ~VersorTransformOptimizer() {} 00078 00079 private: 00080 VersorTransformOptimizer(const Self&); //purposely not implemented 00081 void operator=(const Self&); //purposely not implemented 00082 00083 00084 }; 00085 00086 } // end namespace itk 00087 00088 00089 #endif 00090