00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkRegularStepGradientDescentOptimizer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:38 $ 00007 Version: $Revision: 1.19 $ 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 __itkRegularStepGradientDescentOptimizer_h 00018 #define __itkRegularStepGradientDescentOptimizer_h 00019 00020 #include "itkRegularStepGradientDescentBaseOptimizer.h" 00021 00022 namespace itk 00023 { 00024 00031 class ITK_EXPORT RegularStepGradientDescentOptimizer : 00032 public RegularStepGradientDescentBaseOptimizer 00033 { 00034 public: 00036 typedef RegularStepGradientDescentOptimizer Self; 00037 typedef RegularStepGradientDescentBaseOptimizer Superclass; 00038 typedef SmartPointer<Self> Pointer; 00039 typedef SmartPointer<const Self> ConstPointer; 00040 00042 itkNewMacro(Self); 00043 00045 itkTypeMacro( RegularStepGradientDescentOptimizer, 00046 RegularStepGradientDescentBaseOptimizer ); 00047 00049 typedef Superclass::CostFunctionType CostFunctionType; 00050 typedef CostFunctionType::Pointer CostFunctionPointer; 00051 00052 00053 protected: 00054 RegularStepGradientDescentOptimizer() {}; 00055 virtual ~RegularStepGradientDescentOptimizer() {}; 00056 00062 virtual void StepAlongGradient( 00063 double factor, 00064 const DerivativeType & transformedGradient ); 00065 00066 private: 00067 RegularStepGradientDescentOptimizer(const Self&); //purposely not implemented 00068 void operator=(const Self&); //purposely not implemented 00069 00070 }; 00071 00072 } // end namespace itk 00073 00074 00075 00076 #endif 00077 00078 00079 00080