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

itkFRPROptimizer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFRPROptimizer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/05/25 13:41:42 $
00007   Version:   $Revision: 1.2 $
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 __itkFRPROptimizer_h
00018 #define __itkFRPROptimizer_h
00019 
00020 #include <itkVector.h>
00021 #include <itkMatrix.h>
00022 #include <itkPowellOptimizer.h>
00023 
00024 namespace itk
00025 {
00026 
00050 class ITK_EXPORT FRPROptimizer: 
00051     public PowellOptimizer
00052 {
00053 public:
00055   typedef FRPROptimizer                       Self ;
00056   typedef PowellOptimizer                     Superclass;
00057   typedef SmartPointer<Self>                  Pointer;
00058   typedef SmartPointer<const Self>            ConstPointer;
00059 
00060   typedef SingleValuedNonLinearOptimizer::ParametersType
00061                                               ParametersType;
00062   
00064   itkNewMacro(Self);
00065 
00067   itkTypeMacro(FRPROptimizer, PowellOptimizer );
00068 
00070   typedef  SingleValuedCostFunction         CostFunctionType;
00071   typedef  CostFunctionType::Pointer        CostFunctionPointer;
00072 
00074   void StartOptimization();
00075 
00077   void SetToFletchReeves();
00078 
00080   void SetToPolakRibiere();
00081 
00082 protected:
00083   FRPROptimizer() ;
00084   virtual ~FRPROptimizer(); 
00085 
00086   void PrintSelf(std::ostream& os, Indent indent) const;
00087 
00091   virtual void GetValueAndDerivative(ParametersType p, double * val,
00092                                      ParametersType * xi);
00093 
00094   virtual void   LineOptimize(ParametersType * p, ParametersType xi,
00095                               double * val );
00096 
00097 
00098 private:
00099   FRPROptimizer(const FRPROptimizer&) ; // not implemented
00100 
00101   typedef enum 
00102     {
00103     FletchReeves,
00104     PolakRibiere
00105     }               OptimizationType;
00106 
00107   OptimizationType  m_OptimizationType;
00108 
00109 } ; // end of class
00110 
00111 } // end of namespace itk
00112 
00113 #endif
00114 

Generated at Mon Mar 12 00:25:31 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000