00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVersorTransformOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/03/07 00:20:15 $ 00007 Version: $Revision: 1.6 $ 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 __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 enum { SpaceDimension = 3 }; 00069 00071 typedef Versor<double> VersorType; 00072 typedef VersorType::VectorType VectorType; 00073 00075 virtual void StepAlongGradient( double factor, 00076 const DerivativeType & transformedGradient ); 00077 00078 protected: 00079 VersorTransformOptimizer() {} 00080 virtual ~VersorTransformOptimizer() {} 00081 00082 private: 00083 VersorTransformOptimizer(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